Skip to content

Commit

Permalink
Add ZIP release package for Winget
Browse files Browse the repository at this point in the history
Closes #30
  • Loading branch information
animetosho committed Aug 3, 2024
1 parent e51ce77 commit 8bd0a43
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ jobs:
env:
GITHUB_TOKEN: ${{ github.token }}
- run: msbuild -property:PlatformToolset=ClangCL -property:Configuration=Release -property:Platform=${{ matrix.platform }} par2cmdline.sln
- run: move "${{ matrix.platform }}\Release\par2.exe" par2.exe && 7z a -t7z -mx=9 ${{ matrix.bcj }} par2.7z par2.exe
- run: move "${{ matrix.platform }}\Release\par2.exe" par2.exe
- run: 7z a -t7z -mx=9 ${{ matrix.bcj }} par2.7z par2.exe
- run: 7z a -tzip -mx=9 par2.zip par2.exe
- uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
Expand All @@ -40,6 +42,14 @@ jobs:
asset_path: ./par2.7z
asset_name: par2cmdline-turbo-${{ steps.get_release.outputs.tag_name }}-win-${{ matrix.name }}.7z
asset_content_type: application/octet-stream
- uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./par2.zip
asset_name: par2cmdline-turbo-${{ steps.get_release.outputs.tag_name }}-win-${{ matrix.name }}.zip
asset_content_type: application/octet-stream

build-linux-static:
strategy:
Expand Down

0 comments on commit 8bd0a43

Please sign in to comment.