Skip to content

Free fork of NotProton: Windows Steam games in Mac Steam, on CodeWeavers' Wine and Apple's Game Porting Toolkit

fix(release): attach Bridgeplay-Installer.zip to every release

raymondchinsa6819703441b
diff --git a/docs/RELEASING.md b/docs/RELEASING.md
index e4c1a9b..371551f 100644
--- a/docs/RELEASING.md
+++ b/docs/RELEASING.md
@@ -1,7 +1,8 @@
# Releasing Bridgeplay
-Every release is a GitHub release of `raymondchins/Bridgeplay` carrying `Bridgeplay.zip`
-and `appcast.xml`. Installed apps read
+Every release is a GitHub release of `raymondchins/Bridgeplay` carrying `Bridgeplay.zip`,
+`appcast.xml` and `Bridgeplay-Installer.zip` (bridgeplay.dev's Download links to
+`releases/latest/download/Bridgeplay-Installer.zip`). Installed apps read
`https://github.com/raymondchins/Bridgeplay/releases/latest/download/appcast.xml`
(`SUFeedURL`), so whatever release is marked **Latest** is the update feed.
@@ -45,8 +46,8 @@ installation. `VersioningTests` guards both.
4. Release: `scripts/release-local.sh` (notes default to the commit subjects since the
previous `vX.Y.Z` release; pass a string to override). It builds with
`scripts/build-local.sh --checks`, signs the zip with the EdDSA key in the login
- keychain, writes an appcast with `minimumSystemVersion` 26.0 and publishes `vX.Y.Z` as
- Latest.
+ keychain, writes an appcast with `minimumSystemVersion` 26.0, packages the installer from the
+ same app (`scripts/package-installer.sh`) and publishes `vX.Y.Z` as Latest with all three.
Any other release in the repository (a DXMT build, say) must be created with
`--latest=false`, or the feed URL stops serving `appcast.xml` until the next app release.
diff --git a/scripts/release-local.sh b/scripts/release-local.sh
index 71cae4a..770ee3b 100755
--- a/scripts/release-local.sh
+++ b/scripts/release-local.sh
@@ -188,11 +188,17 @@ feed "$out/bridgeplay" Bridgeplay.zip Bridgeplay.app "$slug"
# installs over /Applications/NotProton.app; later updates match by bundle identifier.
[ "$legacy" -eq 0 ] || feed "$out/legacy" NotProton.zip NotProton.app "$legacy_slug"
+# bridgeplay.dev's Download links to releases/latest/download/Bridgeplay-Installer.zip, so
+# every release that becomes Latest must carry it, built from this same app.
+APP=$app scripts/package-installer.sh
+mv out/Bridgeplay-Installer.zip "$out/bridgeplay/Bridgeplay-Installer.zip"
+
title="Bridgeplay $version"
body=$(printf '%s\n\nBuild %s, based on NotProton %s.\n' "$notes" "$build" "$upstream")
echo "==> $title (build $build), notes since ${previous:-the beginning}:"
printf '%s\n' "$notes" | sed 's/^/ /'
-run gh release create "$tag" "$out/bridgeplay/Bridgeplay.zip" "$out/bridgeplay/appcast.xml" -R "$slug" \
+run gh release create "$tag" "$out/bridgeplay/Bridgeplay.zip" "$out/bridgeplay/appcast.xml" \
+ "$out/bridgeplay/Bridgeplay-Installer.zip" -R "$slug" \
--target "$(git rev-parse HEAD)" --title "$title" --notes "$body" --latest
if [ "$legacy" -eq 1 ]; then
# Only a carrier for the feed: the tag goes on that repository's default branch, since