Skip to content

Run Windows games on Apple Silicon — free, open source, with an open compatibility database that tells you what actually works.

release.sh stops at once on a detached HEAD instead of failing at the push after the build and notarization (0.10.9 had to be finished by hand)

Gauthier Piarrette93a41c68fb13
diff --git a/Scripts/release.sh b/Scripts/release.sh
index 65ca127..6fbcac9 100755
--- a/Scripts/release.sh
+++ b/Scripts/release.sh
@@ -5,6 +5,9 @@
# Scripts/release.sh --promote 0.3.1 (beta -> stable, phased over seven days)
set -euo pipefail
cd "$(dirname "$0")/.."
+# Every path below ends in a plain `git push` of the branch. On a detached HEAD that push fails
+# after the build and notarization have run (0.10.9, 2026-10-06), so say it before anything starts.
+git symbolic-ref -q HEAD >/dev/null || { echo "release.sh: HEAD is detached; check out main first (git checkout main && git pull)" >&2; exit 1; }
# Channels (2026-09-07): a normal release goes to beta first (`--beta`), then `--promote <version>`
# turns the same signed artifact into a stable, phased rollout by editing the appcast: no rebuild,
# so what testers ran is byte for byte what everyone gets. `--hotfix` is stable at once, no phasing.