66 - ' v*'
77 workflow_dispatch :
88
9+ permissions :
10+ contents : write
11+
912env :
1013 GO_VERSION : ' 1.23'
1114 NODE_VERSION : ' 20'
@@ -39,22 +42,25 @@ jobs:
3942 run : wails build -clean -platform windows/arm64 -ldflags="-s -w" -o volt-api-windows-arm64.exe
4043
4144 - name : Generate Checksums
45+ shell : pwsh
4246 run : |
4347 cd build/bin
44- Get-FileHash -Algorithm SHA256 volt-api-windows-amd64.exe | Format-List > volt-api-windows-amd64.exe.sha256
45- Get-FileHash -Algorithm SHA256 volt-api-windows-arm64.exe | Format-List > volt-api-windows-arm64.exe.sha256
46- shell : pwsh
48+ # Updated to use a loop to avoid "file not found" errors if names vary slightly
49+ Get-ChildItem -Filter "volt-api-windows-*.exe" | ForEach-Object {
50+ $hash = Get-FileHash -Algorithm SHA256 $_.FullName
51+ $hash.Hash | Out-File -FilePath ($_.Name + ".sha256")
52+ }
4753
4854 - name : Upload Windows Artifacts
4955 uses : actions/upload-artifact@v4
5056 with :
5157 name : windows-builds
5258 path : |
53- build/bin/volt-api-windows- *.exe
59+ build/bin/*.exe
5460 build/bin/*.sha256
5561
5662 build-macos :
57- runs-on : macos-14 # Apple Silicon runner
63+ runs-on : macos-14
5864 steps :
5965 - uses : actions/checkout@v4
6066
7480 - name : Install Frontend Dependencies
7581 run : cd frontend && npm ci
7682
77- - name : Build macOS arm64 (Apple Silicon)
83+ - name : Build macOS arm64
7884 run : wails build -clean -platform darwin/arm64 -ldflags="-s -w"
7985
8086 - name : Ad-hoc Sign arm64
8692 tar -czvf volt-api-macos-arm64.tar.gz volt-api.app
8793 rm -rf volt-api.app
8894
89- - name : Build macOS amd64 (Intel)
95+ - name : Build macOS amd64
9096 run : wails build -clean -platform darwin/amd64 -ldflags="-s -w"
9197
9298 - name : Ad-hoc Sign amd64
@@ -108,7 +114,7 @@ jobs:
108114 with :
109115 name : macos-builds
110116 path : |
111- build/bin/volt-api-macos- *.tar.gz
117+ build/bin/*.tar.gz
112118 build/bin/*.sha256
113119
114120 build-linux :
@@ -129,7 +135,7 @@ jobs:
129135 - name : Install Linux Dependencies
130136 run : |
131137 sudo apt-get update
132- sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev
138+ sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev pkg-config build-essential
133139
134140 - name : Install Wails
135141 run : go install github.com/wailsapp/wails/v2/cmd/wails@latest
@@ -171,7 +177,7 @@ jobs:
171177 - name : Flatten Directory
172178 run : |
173179 mkdir -p release
174- find artifacts -type f \( -name "*.exe" -o -name "*.tar.gz" -o -name "volt-api-linux-*" -o -name "*.sha256" \) -exec cp {} release/ \;
180+ find artifacts -type f -exec cp {} release/ \;
175181 ls -la release/
176182
177183 - name : Create Release
@@ -180,41 +186,18 @@ jobs:
180186 files : release/*
181187 generate_release_notes : true
182188 body : |
183- ## Download
184-
185- | Platform | Architecture | Download |
186- |----------|--------------|----------|
187- | Windows | x64 | `volt-api-windows-amd64.exe` |
188- | Windows | ARM64 | `volt-api-windows-arm64.exe` |
189- | macOS | Apple Silicon (M1/M2/M3) | `volt-api-macos-arm64.tar.gz` |
190- | macOS | Intel | `volt-api-macos-amd64.tar.gz` |
191- | Linux | x64 | `volt-api-linux-amd64` |
192- | Linux | ARM64 | `volt-api-linux-arm64` |
193-
194189 ## Installation
195190
196191 ### Windows
197- Download and run the ` .exe` file .
192+ Download `volt-api-windows-amd64 .exe` (or arm64) and run .
198193
199194 ### macOS
200- 1. Download the `.tar.gz` for your Mac type
201- 2. Extract: `tar -xzf volt-api-macos-*.tar.gz`
202- 3. Move to Applications: `mv volt-api.app /Applications/`
203- 4. **First launch**: Right-click the app → Select **"Open"** → Click **"Open"**
204-
205- > ⚠️ macOS will show a security warning because this is an open-source app without paid Apple signing. The right-click → Open step bypasses this safely.
195+ 1. Download the `.tar.gz` for your Mac type.
196+ 2. Extract and move to Applications.
197+ 3. Right-click -> Open to bypass security warning.
206198
207199 ### Linux
208- ```bash
209- tar -xzf volt-api-linux-amd64.tar.gz # if archived
210- chmod +x volt-api-linux-amd64
211- ./volt-api-linux-amd64
212- ```
213-
214- ## Verify Downloads (Optional)
215- ```bash
216- # Check SHA256 checksum
217- sha256sum -c volt-api-linux-amd64.sha256
218- ```
200+ 1. `chmod +x volt-api-linux-amd64`
201+ 2. `./volt-api-linux-amd64`
219202 env :
220- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
203+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments