Skip to content

Commit

Permalink
publish: ensure portable binaries are added instead of replacing th…
Browse files Browse the repository at this point in the history
…e entire zip archive

turn out its not only windows, but ALL prebuilt archives only have portable binaries in them

fixes #2083

[skip ci]
  • Loading branch information
jqnatividad committed Aug 25, 2024
1 parent 6108416 commit 34ad206
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/publish-portable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,20 @@ jobs:
base64-encoded-secret: ${{ secrets.QSV_ZIPSIGN_PRIV_KEY }}
filename: "qsvpriv.key"
is-executable: false
working-directory: "."
- name: zipsign binary
working-directory: "."
- name: Download latest release zip
uses: robinraju/[email protected]
with:
repository: "jqnatividad/qsv"
latest: true
token: ${{ secrets.GITHUB_TOKEN }}
fileName: qsv-${{ needs.analyze-tags.outputs.previous-tag }}-${{ matrix.job.target }}.zip
- name: remove zipsign signature from zip archive
run: |
zipsign unsign zip qsv-${{ needs.analyze-tags.outputs.previous-tag }}-${{ matrix.job.target }}.zip
- name: add/update portable files to zip
run: 7z u -tzip qsv-${{ needs.analyze-tags.outputs.previous-tag }}-${{ matrix.job.target }}.zip ./qsv-${{ needs.analyze-tags.outputs.previous-tag }}/qsv* -mx=9 -mmt=on
- name: re-zipsign zip archive
run: |
zipsign sign zip qsv-${{ needs.analyze-tags.outputs.previous-tag }}-${{ matrix.job.target }}.zip qsvpriv.key
- name: Upload zipped binaries to release
Expand Down

0 comments on commit 34ad206

Please sign in to comment.