feat(repo): attach a portable zip to launcher releases
Adaptation pack / release (push) Waiting to run
Adaptation pack / release (push) Waiting to run
Zip the unpacked app after packaging and upload it as a fourth release asset for manual download. The zip is unsigned; only the installer is Ed25519-signed for the update check.
This commit is contained in:
1 parent
ec020d2848
commit
1c24adbd83
1 file changed
+10
-3
@@ -1,7 +1,8 @@
|
||||
# Build, sign, and publish a Windows installer of the WTOffline Launcher as a GitHub release
|
||||
# tagged v<version>. The launcher's update check reads v<version> releases and expects all three
|
||||
# files (installer, manifest, signature); a release missing any of them breaks the check for
|
||||
# already-installed launchers.
|
||||
# tagged v<version>. The launcher's update check reads v<version> releases and expects the three
|
||||
# signed files (installer, manifest, signature); a release missing any of them breaks the check
|
||||
# for already-installed launchers. The workflow also attaches an unsigned portable zip of the
|
||||
# unpacked app for manual download.
|
||||
#
|
||||
# Start it either way:
|
||||
# - push a tag: git tag v0.1.0 && git push origin v0.1.0
|
||||
@@ -70,6 +71,11 @@ jobs:
|
||||
- name: Build and package the Windows installer
|
||||
run: npm --workspace "@wto/launcher" run package:win
|
||||
|
||||
- name: Package the portable archive
|
||||
shell: pwsh
|
||||
run: |
|
||||
Compress-Archive -Path "build/windows-installer/win-unpacked/*" -DestinationPath "build/windows-installer/wtoffline-launcher-$env:VERSION-win-x64-portable.zip" -Force
|
||||
|
||||
- name: Sign the release
|
||||
env:
|
||||
PATCH_SIGNING_KEY: ${{ secrets.PATCH_SIGNING_KEY }}
|
||||
@@ -87,6 +93,7 @@ jobs:
|
||||
"build/windows-installer/wtoffline-launcher-$VERSION-win-x64.exe" \
|
||||
"build/windows-installer/wtoffline-launcher-$VERSION-win-x64.manifest.json" \
|
||||
"build/windows-installer/wtoffline-launcher-$VERSION-win-x64.manifest.json.sig" \
|
||||
"build/windows-installer/wtoffline-launcher-$VERSION-win-x64-portable.zip" \
|
||||
"${flags[@]}" \
|
||||
--title "WTOffline Launcher $VERSION" \
|
||||
--notes-file ".github/release-notes/v$VERSION.md" \
|
||||
|
||||
Reference in new issue
Block a user