diff --git a/.github/workflows/launcher-release.yml b/.github/workflows/launcher-release.yml index 860e670..8965e8f 100644 --- a/.github/workflows/launcher-release.yml +++ b/.github/workflows/launcher-release.yml @@ -1,7 +1,8 @@ # Build, sign, and publish a Windows installer of the WTOffline Launcher as a GitHub release -# tagged v. The launcher's update check reads v releases and expects all three -# files (installer, manifest, signature); a release missing any of them breaks the check for -# already-installed launchers. +# tagged v. The launcher's update check reads v 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" \