Skip to content

Commit 753b790

Browse files
committed
Fix zip creation on Windows in pack-app workflow
Use PowerShell Compress-Archive on Windows runners where the zip command is not available. Made-with: Cursor
1 parent f25a5ee commit 753b790

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/pack-app.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,16 @@ jobs:
3636
run: uv sync --all-groups
3737
- name: Build app bundle
3838
run: uv run python scripts/pack_app.py
39-
- name: Create zip archive
40-
shell: bash
39+
- name: Create zip archive (Unix)
40+
if: runner.os != 'Windows'
4141
run: |
4242
cd dist
4343
zip -r ../Tuttle-${{ github.ref_name }}-${{ matrix.platform }}.zip .
44+
- name: Create zip archive (Windows)
45+
if: runner.os == 'Windows'
46+
shell: pwsh
47+
run: |
48+
Compress-Archive -Path dist\* -DestinationPath Tuttle-${{ github.ref_name }}-${{ matrix.platform }}.zip
4449
- uses: actions/upload-artifact@v4
4550
with:
4651
name: Tuttle-${{ github.ref_name }}-${{ matrix.platform }}

0 commit comments

Comments
 (0)