Skip to content

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

L10n: drop a duplicate key that crashed the app at launch, and refuse to build one again

Gauthier Piarrette81f001908797
diff --git a/Scripts/make-app.sh b/Scripts/make-app.sh
index c4f2261..be86b0d 100755
--- a/Scripts/make-app.sh
+++ b/Scripts/make-app.sh
@@ -10,6 +10,13 @@ VERSION="${2:-0.0.0-dev}"
FEED_URL="https://raw.githubusercontent.com/gauthierpiarrette/highball/main/appcast.xml"
ED_PUBLIC_KEY="lntI8A+HC5Wo6xb4dZNQ6IYteI771cNybU8XNXmvMd8="
+# A duplicate key in L10n's dictionary literal crashes the app at launch (2026-09-15); refuse to build one.
+python3 - <<'PY' || exit 1
+import re, collections
+keys = re.findall(r'^\s*"((?:[^"\\]|\\.)*)"\s*:\s*"', open("Sources/HighballApp/L10n.swift").read(), re.M)
+dups = [k for k, c in collections.Counter(keys).items() if c > 1]
+if dups: print("error: duplicate L10n keys:", dups); raise SystemExit(1)
+PY
swift build -c "$CONFIG" --product HighballApp
APP=dist/Highball.app
rm -rf "$APP"; mkdir -p "$APP/Contents/MacOS" "$APP/Contents/Resources" "$APP/Contents/Frameworks"
diff --git a/Sources/HighballApp/L10n.swift b/Sources/HighballApp/L10n.swift
index b5fdfcc..3f7a71d 100644
--- a/Sources/HighballApp/L10n.swift
+++ b/Sources/HighballApp/L10n.swift
@@ -219,7 +219,6 @@ enum L10n {
"Remove the shortcut": "Supprimer le raccourci",
"Rosetta is not working on this Mac": "Rosetta ne fonctionne pas sur ce Mac",
"Install Rosetta": "Installer Rosetta",
- "Installing Rosetta, Apple's compatibility layer": "Installation de Rosetta, la couche de compatibilité d'Apple",
"a minute or two": "une minute ou deux",
"Highball's Wine engine is Intel code and needs Rosetta, Apple's translation layer. A macOS update can remove it. Highball can install it now, or run in Terminal: softwareupdate --install-rosetta --agree-to-license": "Le moteur Wine de Highball est du code Intel et a besoin de Rosetta, la couche de traduction d'Apple. Une mise à jour de macOS peut la retirer. Highball peut l'installer maintenant, ou lancez dans le Terminal : softwareupdate --install-rosetta --agree-to-license",
"Moves this game's shortcut app in ~/Applications/Highball to the Trash.": "Place le raccourci de ce jeu (dans ~/Applications/Highball) dans la corbeille.",