Skip to content

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

The app icon is a stored image now. make-app.sh ran Scripts/make-icon.swift on every build, which drew the glass with Core Graphics, then resized and packed it with sips and iconutil, so the icon only existed as drawing code (Hayden asked about it on Discord). Resources/AppIcon.icns and Resources/AppIcon.png are the files every build so far produced, byte for byte (the same SHA-256 in 0.10.3, the October 8 dev build and a fresh render), and make-app.sh copies them. A debug build with this change has the same two files, CFBundleIconFile AppIcon and a valid signature. Scripts/make-icon.swift is no longer run by the build.

Gauthier Piarrette260a02e2aaea
diff --git a/Resources/AppIcon.icns b/Resources/AppIcon.icns
new file mode 100644
index 0000000..7752865
Binary files /dev/null and b/Resources/AppIcon.icns differ
diff --git a/Resources/AppIcon.png b/Resources/AppIcon.png
new file mode 100644
index 0000000..be3660f
Binary files /dev/null and b/Resources/AppIcon.png differ
diff --git a/Scripts/make-app.sh b/Scripts/make-app.sh
index 1e20962..a9d5f5e 100755
--- a/Scripts/make-app.sh
+++ b/Scripts/make-app.sh
@@ -152,16 +152,9 @@ for f in "$RECIPES"/launchers/*.json "$RECIPES"/games/*.json "$RECIPES"/tweaks/*
DBDIR="$(dirname "$RECIPES")/db/games"
if [ -d "$DBDIR" ]; then mkdir -p "$APP/Contents/Resources/db-games"; cp "$DBDIR"/*.json "$APP/Contents/Resources/db-games/"; fi
-# App icon.
-ICONWORK=.build/icon
-mkdir -p "$ICONWORK/AppIcon.iconset"
-swift Scripts/make-icon.swift "$ICONWORK/AppIcon-1024.png" >/dev/null
-for sz in 16 32 128 256 512; do
- sips -z $sz $sz "$ICONWORK/AppIcon-1024.png" --out "$ICONWORK/AppIcon.iconset/icon_${sz}x${sz}.png" >/dev/null
- d=$((sz*2)); sips -z $d $d "$ICONWORK/AppIcon-1024.png" --out "$ICONWORK/AppIcon.iconset/icon_${sz}x${sz}@2x.png" >/dev/null
-done
-iconutil -c icns "$ICONWORK/AppIcon.iconset" -o "$APP/Contents/Resources/AppIcon.icns"
-sips -z 512 512 "$ICONWORK/AppIcon-1024.png" --out "$APP/Contents/Resources/AppIcon.png" >/dev/null
+# App icon: the icns is the bundle's icon, the 512 px png the copy the app loads itself
+# (its Dock icon, the empty environment view, launcher shortcuts in ~/Applications/Highball).
+cp Resources/AppIcon.icns Resources/AppIcon.png "$APP/Contents/Resources/"
cat > "$APP/Contents/Info.plist" <<PLIST
<?xml version="1.0" encoding="UTF-8"?>