feat(launcher): support signed in-place updates for portable builds

This commit is contained in:
N0VAN0M4LY committed 2026-12-02 09:37:05 +08:00
1 parent e284ea7ed6
commit 82ec1c47ff
8 files changed
+477 -46

No files matched your search

+5 -8
View File
@@ -1,8 +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 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.
# for already-installed launchers. The workflow also packages and signs the portable zip with its
# own manifest and signature so portable installations can update in place.
#
# Start it either way:
# - push a tag: git tag v0.1.0 && git push origin v0.1.0
@@ -68,14 +68,9 @@ jobs:
npm run typecheck
npm run typecheck --workspace "@wto/launcher"
- name: Build and package the Windows installer
- name: Build and package the Windows installer and portable archive
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 }}
@@ -94,6 +89,8 @@ jobs:
"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" \
"build/windows-installer/wtoffline-launcher-$VERSION-win-x64-portable.manifest.json" \
"build/windows-installer/wtoffline-launcher-$VERSION-win-x64-portable.manifest.json.sig" \
"${flags[@]}" \
--title "WTOffline Launcher $VERSION" \
--notes-file ".github/release-notes/v$VERSION.md" \