File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 : |
You can’t perform that action at this time.
0 commit comments