Skip to content

Commit 24752a8

Browse files
committed
Fix Windows release backend archive packaging
1 parent cd95d31 commit 24752a8

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

.github/workflows/release-desktop.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,25 @@ jobs:
131131
if (!$ok) { throw "Backend health check failed" }
132132
.\bin\symphony_elixir.bat stop
133133
Pop-Location
134-
- name: Pack backend archive for Tauri bundle
134+
- name: Pack backend archive for Tauri bundle (Unix)
135+
if: runner.os != 'Windows'
135136
run: npm run build:backend
137+
- name: Pack backend archive for Tauri bundle (Windows)
138+
if: runner.os == 'Windows'
139+
shell: pwsh
140+
run: |
141+
if (Test-Path src-tauri/resources/symphony_backend.tar.gz) {
142+
Remove-Item -Force src-tauri/resources/symphony_backend.tar.gz
143+
}
144+
if (!(Test-Path src-tauri/resources/symphony_backend/bin/symphony_elixir.bat)) {
145+
throw "Windows backend release script missing: src-tauri/resources/symphony_backend/bin/symphony_elixir.bat"
146+
}
147+
Push-Location src-tauri/resources
148+
tar -czf symphony_backend.tar.gz symphony_backend
149+
Pop-Location
150+
if (!(Test-Path src-tauri/resources/symphony_backend.tar.gz)) {
151+
throw "Backend archive missing: src-tauri/resources/symphony_backend.tar.gz"
152+
}
136153
- name: Regenerate macOS app icon
137154
if: runner.os == 'macOS'
138155
run: |

0 commit comments

Comments
 (0)