Skip to content

Commit d709a68

Browse files
committed
fix windows package
1 parent 28b53d9 commit d709a68

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,19 @@ jobs:
7979
CGO_ENABLED=1 GOOS=${{ matrix.GOOS }} GOARCH=${{ matrix.GOARCH }} go build -tags gui -ldflags="${LDFLAGS}" -o "dist/xcstrings-translator-${{ matrix.target }}-gui${{ matrix.ext }}" .
8080
chmod +x dist/*
8181
82-
- name: Package as ZIP
82+
- name: Package as ZIP (non-Windows)
83+
if: matrix.GOOS != 'windows'
8384
shell: bash
8485
run: |
8586
cd dist
8687
zip "xcstrings-translator-${{ matrix.target }}.zip" "xcstrings-translator-${{ matrix.target }}${{ matrix.ext }}" "xcstrings-translator-${{ matrix.target }}-gui${{ matrix.ext }}"
8788
89+
- name: Package as ZIP (Windows)
90+
if: matrix.GOOS == 'windows'
91+
shell: pwsh
92+
run: |
93+
Compress-Archive -Path "dist/xcstrings-translator-${{ matrix.target }}${{ matrix.ext }}","dist/xcstrings-translator-${{ matrix.target }}-gui${{ matrix.ext }}" -DestinationPath "dist/xcstrings-translator-${{ matrix.target }}.zip"
94+
8895
- name: Upload artifacts
8996
uses: actions/upload-artifact@v4
9097
with:

0 commit comments

Comments
 (0)