From 9e86c99ff32b5f1368d1c9fc5b8cc3b023ffcd75 Mon Sep 17 00:00:00 2001 From: rainlizard Date: Wed, 29 Nov 2023 23:04:12 +1100 Subject: [PATCH] windows icon --- .github/workflows/main.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6ca7ba1c..f127acd2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -24,7 +24,7 @@ jobs: MAJOR_MINOR=$(grep "var major_minor" Autoload/Version.gd | awk -F\" '{print $2}') PATCH=$(git rev-list --count HEAD) FULL_VERSION="$MAJOR_MINOR.$PATCH" - echo "FULL_VERSION=$FULL_VERSION" >>$GITHUB_OUTPUT + echo "FULL_VERSION=$FULL_VERSION" >> $GITHUB_OUTPUT echo "PATCH=$PATCH" >> $GITHUB_ENV - name: Update Version in Godot Script @@ -52,9 +52,19 @@ jobs: - name: Export Godot Game (Windows) run: ./Godot_v3.5.3-stable_linux_headless.64 --export "Windows Desktop" ./bin/ExportWindows/Unearth/Unearth.exe - - name: Replace Icon in Windows Export - run: ./Godot_v3.5.3-stable_linux_headless.64 -s Art/ReplaceIcon.gd Art/UnearthIcon.ico ./bin/ExportWindows/Unearth/Unearth.exe - + - name: Install Wine + run: | + sudo apt-get update + sudo apt-get install -y wine64 + + - name: Download rcedit + run: | + wget https://github.com/electron/rcedit/releases/download/v2.0.0/rcedit-x64.exe -O rcedit.exe + + - name: Replace Icon in Windows Export with rcedit + run: | + wine64 rcedit.exe ./bin/ExportWindows/Unearth/Unearth.exe --set-icon Art/UnearthIcon.ico + - name: Upload Linux Artifacts uses: actions/upload-artifact@v3 with: