Skip to content

Commit 151dc3d

Browse files
authored
Fix CI: Install Wails CLI on all platforms for release builds (#36)
* fix(ci): Install Wails CLI on all platforms for release builds * fix: change job name
1 parent cd83b96 commit 151dc3d

1 file changed

Lines changed: 16 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ env:
1313
CGO_ENABLED: 1
1414

1515
jobs:
16-
build:
16+
release-build:
17+
name: Release Build
1718
strategy:
1819
fail-fast: false
1920
matrix:
@@ -49,14 +50,25 @@ jobs:
4950
with:
5051
bun-version: latest
5152

52-
- name: Install dependencies
53+
- name: Install Linux dependencies
5354
if: matrix.os == 'ubuntu-latest'
5455
run: |
5556
sudo apt-get update
5657
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev
58+
59+
- name: Install Wails CLI
60+
run: |
5761
go install github.com/wailsapp/wails/v3/cmd/wails3@latest
58-
chmod +x $(go env GOPATH)/bin/wails3
59-
sudo cp $(go env GOPATH)/bin/wails3 /usr/local/bin/wails
62+
if [ "${{ matrix.os }}" = "windows-latest" ]; then
63+
mv $(go env GOPATH)/bin/wails3.exe $(go env GOPATH)/bin/wails.exe
64+
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
65+
elif [ "${{ matrix.os }}" = "macos-latest" ]; then
66+
mv $(go env GOPATH)/bin/wails3 $(go env GOPATH)/bin/wails
67+
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
68+
else
69+
sudo cp $(go env GOPATH)/bin/wails3 /usr/local/bin/wails
70+
fi
71+
shell: bash
6072

6173
- name: Build Application
6274
run: |

0 commit comments

Comments
 (0)