Run Windows games on Apple Silicon — free, open source, with an open compatibility database that tells you what actually works.
Swift apple-silicond3dmetaldxmtdxvkfexgame-porting-toolkitgamingmac-gamingmacosmetalmoltenvksteamswiftuivkd3d-protonwhisky-alternativewindows-gameswinewine-wrapper
App icon in Icon Composer's format, so macOS 26 and later draw it as a Liquid Glass icon. Resources/AppIcon.icon holds the old icon's artwork as layers (glass outline, amber drink, highlight, two ice cubes, bubbles; SVG, scaled to the full-bleed canvas the system masks), with glass on the outline and the ice; make-app.sh compiles it with actool into Assets.car, and Info.plist names it with CFBundleIconName. macOS 14 and 15 keep CFBundleIconFile, now a render of the new icon at every size up to 1024 px (actool's own icns stops at 256); without actool only that icns ships. The app no longer sets its Dock icon from AppIcon.png when it runs as a bundle, since that replaced the system's Liquid Glass drawing with a flat copy; a bare SwiftPM run still does. AppIcon.png and the README/docs logos are the new icon as macOS 27 draws it. The painted coaster glow is gone, the system's shadow takes its place. Prompted by @hayden9002's static version (highball#377). Checked: actool compiles it, make-app.sh's icon step run alone gives an Assets.car whose NSWorkspace render matches the preview pixel for pixel, and HighballApp builds.
Gauthier Piarrettec4eff80155a8
diff --git a/.github/assets/logo-128.png b/.github/assets/logo-128.pngindex 3d0297a..5c3121a 100644Binary files a/.github/assets/logo-128.png and b/.github/assets/logo-128.png differdiff --git a/.github/assets/logo.png b/.github/assets/logo.pngindex d29f808..55ea92c 100644Binary files a/.github/assets/logo.png and b/.github/assets/logo.png differdiff --git a/Resources/AppIcon.icns b/Resources/AppIcon.icnsindex 7752865..0c134b8 100644Binary files a/Resources/AppIcon.icns and b/Resources/AppIcon.icns differdiff --git a/Resources/AppIcon.icon/Assets/bubbles.svg b/Resources/AppIcon.icon/Assets/bubbles.svgnew file mode 100644index 0000000..8bd6cd7--- /dev/null+++ b/Resources/AppIcon.icon/Assets/bubbles.svg@@ -0,0 +1,8 @@+<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024" viewBox="0 0 1024 1024">+ <g fill="#F4E2C2">+ <circle cx="472" cy="675" r="10"/>+ <circle cx="572" cy="724" r="16"/>+ <circle cx="410" cy="774" r="12"/>+ <circle cx="634" cy="787" r="11"/>+ </g>+</svg>diff --git a/Resources/AppIcon.icon/Assets/highlight.svg b/Resources/AppIcon.icon/Assets/highlight.svgnew file mode 100644index 0000000..948376f--- /dev/null+++ b/Resources/AppIcon.icon/Assets/highlight.svg@@ -0,0 +1,3 @@+<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024" viewBox="0 0 1024 1024">+ <rect x="362" y="241" width="11" height="495" rx="5.5" fill="#FFF6E8" opacity="0.38"/>+</svg>diff --git a/Resources/AppIcon.icon/Assets/ice.svg b/Resources/AppIcon.icon/Assets/ice.svgnew file mode 100644index 0000000..1f728ce--- /dev/null+++ b/Resources/AppIcon.icon/Assets/ice.svg@@ -0,0 +1,6 @@+<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024" viewBox="0 0 1024 1024">+ <g fill="#FBEFD9" fill-opacity="0.82" stroke="#FFF9EF" stroke-width="7">+ <rect x="-68.5" y="-68.5" width="137" height="137" rx="18" transform="translate(437 495) rotate(10)"/>+ <rect x="-68.5" y="-68.5" width="137" height="137" rx="18" transform="translate(590 557) rotate(-20)"/>+ </g>+</svg>diff --git a/Resources/AppIcon.icon/Assets/liquid.svg b/Resources/AppIcon.icon/Assets/liquid.svgnew file mode 100644index 0000000..0f5af61--- /dev/null+++ b/Resources/AppIcon.icon/Assets/liquid.svg@@ -0,0 +1,10 @@+<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024" viewBox="0 0 1024 1024">+ <defs>+ <linearGradient id="amber" x1="0" y1="0" x2="0" y2="1">+ <stop offset="0" stop-color="#EBBC68"/>+ <stop offset="1" stop-color="#B07622"/>+ </linearGradient>+ </defs>+ <path d="M337 400 H686 V789 A48 48 0 0 1 638 837 H385 A48 48 0 0 1 337 789 Z" fill="url(#amber)"/>+ <rect x="337" y="400" width="349" height="22" fill="#F6D493" opacity="0.9"/>+</svg>diff --git a/Resources/AppIcon.icon/Assets/outline.svg b/Resources/AppIcon.icon/Assets/outline.svgnew file mode 100644index 0000000..bdbcdc5--- /dev/null+++ b/Resources/AppIcon.icon/Assets/outline.svg@@ -0,0 +1,3 @@+<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024" viewBox="0 0 1024 1024">+ <rect x="327" y="154" width="369" height="693" rx="58" ry="58" fill="none" stroke="#EEE6D9" stroke-width="20"/>+</svg>diff --git a/Resources/AppIcon.icon/icon.json b/Resources/AppIcon.icon/icon.jsonnew file mode 100644index 0000000..37f6e02--- /dev/null+++ b/Resources/AppIcon.icon/icon.json@@ -0,0 +1,101 @@+{+ "fill-specializations": [+ {+ "value": {+ "automatic-gradient": "srgb:0.15686,0.12157,0.07843,1.00000"+ }+ },+ {+ "appearance": "dark",+ "value": {+ "automatic-gradient": "srgb:0.13333,0.10196,0.06275,1.00000"+ }+ }+ ],+ "groups": [+ {+ "hidden": false,+ "layers": [+ {+ "glass": false,+ "hidden": false,+ "image-name": "bubbles.svg",+ "name": "bubbles",+ "position": {+ "scale": 1,+ "translation-in-points": [+ 0,+ 0+ ]+ }+ },+ {+ "glass": true,+ "hidden": false,+ "image-name": "ice.svg",+ "name": "ice",+ "position": {+ "scale": 1,+ "translation-in-points": [+ 0,+ 0+ ]+ }+ },+ {+ "glass": false,+ "hidden": false,+ "image-name": "highlight.svg",+ "name": "highlight",+ "position": {+ "scale": 1,+ "translation-in-points": [+ 0,+ 0+ ]+ }+ },+ {+ "glass": true,+ "hidden": false,+ "image-name": "outline.svg",+ "name": "outline",+ "position": {+ "scale": 1,+ "translation-in-points": [+ 0,+ 0+ ]+ }+ },+ {+ "glass": false,+ "hidden": false,+ "image-name": "liquid.svg",+ "name": "liquid",+ "position": {+ "scale": 1,+ "translation-in-points": [+ 0,+ 0+ ]+ }+ }+ ],+ "shadow": {+ "kind": "neutral",+ "opacity": 0.5+ },+ "translucency": {+ "enabled": false,+ "value": 0.5+ }+ }+ ],+ "supported-platforms": {+ "circles": [+ "watchOS"+ ],+ "squares": "shared"+ }+}\ No newline at end of filediff --git a/Resources/AppIcon.png b/Resources/AppIcon.pngindex be3660f..55ea92c 100644Binary files a/Resources/AppIcon.png and b/Resources/AppIcon.png differdiff --git a/Scripts/make-app.sh b/Scripts/make-app.shindex 12fe255..83c2032 100755--- a/Scripts/make-app.sh+++ b/Scripts/make-app.sh@@ -159,8 +159,22 @@ 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: 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).+# (the empty environment view, launcher shortcuts in ~/Applications/Highball, the Dock icon of a+# bare SwiftPM run). Resources/AppIcon.icon is the same icon in Icon Composer's format, the Liquid+# Glass icon macOS 26 and later draw: actool compiles it into Assets.car (CFBundleIconName). macOS 14+# and 15 keep the checked-in AppIcon.icns (CFBundleIconFile), a render of the same icon at every size+# up to 1024 px (actool's own icns stops at 256). Without Xcode's actool only the icns ships, as before.cp Resources/AppIcon.icns Resources/AppIcon.png "$APP/Contents/Resources/"+if xcrun --find actool >/dev/null 2>&1; then+ ICONTMP=$(mktemp -d)+ if xcrun actool "$PWD/Resources/AppIcon.icon" --compile "$ICONTMP" --platform macosx --minimum-deployment-target 14.0 \+ --app-icon AppIcon --output-partial-info-plist "$ICONTMP/partial.plist" >/dev/null 2>&1 && [ -f "$ICONTMP/Assets.car" ]; then+ cp "$ICONTMP/Assets.car" "$APP/Contents/Resources/"+ else+ echo "make-app: actool could not compile Resources/AppIcon.icon, keeping the flat icns" >&2+ fi+ rm -rf "$ICONTMP"+ficat > "$APP/Contents/Info.plist" <<PLIST<?xml version="1.0" encoding="UTF-8"?>@@ -174,6 +188,7 @@ cat > "$APP/Contents/Info.plist" <<PLIST<key>CFBundleShortVersionString</key><string>${VERSION}</string><key>CFBundleVersion</key><string>${VERSION}</string><key>CFBundleIconFile</key><string>AppIcon</string>+ <key>CFBundleIconName</key><string>AppIcon</string><key>LSMinimumSystemVersion</key><string>14.0</string><key>NSHighResolutionCapable</key><true/><key>SUFeedURL</key><string>${FEED_URL}</string>diff --git a/Sources/HighballApp/HighballApp.swift b/Sources/HighballApp/HighballApp.swiftindex c4c6585..18cf094 100644--- a/Sources/HighballApp/HighballApp.swift+++ b/Sources/HighballApp/HighballApp.swift@@ -159,10 +159,13 @@ final class AppDelegate: NSObject, NSApplicationDelegate {if Bundle.main.bundleURL.pathExtension != "app" {NSApp.setActivationPolicy(.regular)NSApp.activate(ignoringOtherApps: true)- }- if let iconURL = Bundle.main.url(forResource: "AppIcon", withExtension: "png"),- let icon = NSImage(contentsOf: iconURL) {- NSApp.applicationIconImage = icon+ // A bare executable has no bundle icon, so give its Dock tile the png. A bundled app+ // keeps the one macOS draws from Assets.car, which is the Liquid Glass icon on macOS 26+ // and later; setting the png there would replace it with a flat copy.+ if let iconURL = Bundle.main.url(forResource: "AppIcon", withExtension: "png"),+ let icon = NSImage(contentsOf: iconURL) {+ NSApp.applicationIconImage = icon+ }}// Issue #58: if window restoration brought back only the Settings window, open the main// one. SettingsView asks for it as it appears; this is the fallback once launch settles.diff --git a/docs/logo-128.png b/docs/logo-128.pngindex 3d0297a..5c3121a 100644Binary files a/docs/logo-128.png and b/docs/logo-128.png differdiff --git a/docs/logo.png b/docs/logo.pngindex d29f808..55ea92c 100644Binary files a/docs/logo.png and b/docs/logo.png differ