Skip to content

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

The gate's open-Highball check matches the app's own path, not a shell that names it

Gauthier Piarretteeb8efda2ba30
diff --git a/Scripts/gate.sh b/Scripts/gate.sh
index 7a06601..7fd5430 100755
--- a/Scripts/gate.sh
+++ b/Scripts/gate.sh
@@ -32,8 +32,9 @@ fi
# A Highball already open (the installed one, say) makes every copy the smokes launch start with
# no window, since they share its bundle id, and upgrade-smoke then "fails" (2026-09-30: 0.9.39
# was open, and 0.9.39 itself launched as a second copy showed no window either). Stop and say so.
-if pgrep -fl "Highball.app/Contents/MacOS/Highball" | grep -v "/dist/Highball.app/" | grep -q .; then
- echo "gate: another Highball is open ($(pgrep -fl 'Highball.app/Contents/MacOS/Highball' | grep -v '/dist/Highball.app/' | head -1)); quit it and run again (nothing was tested)" >&2
+OPEN=$(pgrep -fl "^[^ ]*Highball\.app/Contents/MacOS/Highball( |$)" | grep -v "/dist/Highball.app/" | head -1) # argv[0] only, not a shell that names the path
+if [ -n "$OPEN" ]; then
+ echo "gate: another Highball is open ($OPEN); quit it and run again (nothing was tested)" >&2
exit 3
fi
echo "gate: building dist/Highball.app from the working tree"