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
Bundle a lipo stand-in for winetricks: macOS's lipo needs Xcode's tools and an accepted licence, and without its answer winetricks reached for a missing wine64 and the core fonts step failed (highball#135, #183, #180). Reproduced on an M4 with a refusing lipo (the licence text four times, '%AppData%' returned empty, no fonts) and fixed with the stand-in (fonts installed)
Gauthier Piarrettedc39cb44a605
diff --git a/Scripts/make-app.sh b/Scripts/make-app.shindex 0c62eb9..1e20962 100755--- a/Scripts/make-app.sh+++ b/Scripts/make-app.sh@@ -113,6 +113,10 @@ spike/tools/build-cabextract.sh >/dev/null 2>&1 || { echo "error: could not builmkdir -p "$APP/Contents/Resources/tools"cp spike/tools/cabextract "$APP/Contents/Resources/tools/cabextract"cp spike/tools/cabextract.LICENSE "$APP/Contents/Resources/tools/cabextract.LICENSE"+# A stand-in for `lipo -archs`, which winetricks asks which Wine it runs: macOS's own lipo needs+# Xcode's tools and an accepted Xcode licence, and without them the core fonts step failed+# (highball#135, #183). A shell script reading the Mach-O header; the bundle's seal covers it.+cp spike/tools/lipo "$APP/Contents/Resources/tools/lipo"# The EpicGamesLauncher.exe stand-in for Rockstar games bought on Epic (highball#93), built from# spike/epic-stub/EpicGamesLauncher.c with mingw. A release must carry it; a debug build without# mingw goes on without it and the Epic launch path says so in the log.@@ -229,7 +233,7 @@ if [ -n "$IDENTITY" ]; then# Bundled command-line tools are Mach-O executables too: notarization rejects them unsigned# (cabextract, 2026-09-14: "not signed with a valid Developer ID", no hardened runtime).for tool in "$APP"/Contents/Resources/tools/*; do- case "$tool" in *.LICENSE) ;; *) codesign --force --options runtime --timestamp -s "$IDENTITY" "$tool" ;; esac+ case "$tool" in *.LICENSE|*/lipo) ;; *) codesign --force --options runtime --timestamp -s "$IDENTITY" "$tool" ;; esacdone# The Wine loader helper: its restricted entitlement is only honoured next to the profile, and a# binary claiming it without one is killed at exec, so without the profile it is signed plain.diff --git a/spike/tools/lipo b/spike/tools/liponew file mode 100755index 0000000..82e0f5b--- /dev/null+++ b/spike/tools/lipo@@ -0,0 +1,17 @@+#!/bin/sh+# lipo stand-in for winetricks (highball#135, #183, #180).+#+# winetricks asks `lipo -archs <file>` which architecture Wine is, to pick the right Wine for a+# 64-bit prefix. /usr/bin/lipo is a stub that needs Xcode's command line tools and an accepted+# Xcode licence: without them it prints the licence text or offers to install the tools, answers+# nothing, winetricks then reaches for a wine64 that does not exist, and the core fonts step+# stops with "echo '%AppData%' returned empty string". This answers that one question from the+# Mach-O header with od, which every Mac has, and hands anything else to the real lipo.+if [ "$1" = "-archs" ] && [ $# -eq 2 ] && [ -r "$2" ]; then+ case "$(od -An -t x1 -N 8 "$2" 2>/dev/null | tr -d ' \n')" in+ cffaedfe07000001) echo x86_64; exit 0 ;;+ cffaedfe0c000001) echo arm64; exit 0 ;;+ cefaedfe07000000) echo i386; exit 0 ;;+ esac+fi+exec /usr/bin/lipo "$@"