You also might wanna just use Whisky which does this automatically
This guide works on macOS 13.4+ using Command Line Tools for XCode 15 Beta!
In the recent WWDC, Apple announced and released the "game porting toolkit", which upon further inspection this is just a modified version of CrossOver's fork of wine which is a "compatibility layer" that allows you to run Windows applications on macOS and Linux.
Playing Windows games on MacOS
First, install homebrew which is an amazing macOS package manager, which is weirdly enough what Apple themselves have used for distrobution of this program
brew tap apple/homebrew-apple
This adds apple's offical "repository" for their "forumula" (package), which includes the game-porting-toolkit
Make sure that rosetta2 is installed
/usr/sbin/softwareupdate --install-rosetta --agree-to-license
homebrew to inside Rosetta
arch -x86_64 zsh
cd /usr/local && mkdir homebrew
curl -L github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew
arch -x86_64 /usr/local/homebrew/bin/brew tap apple/homebrew-apple
arch -x86_64 /usr/local/homebrew/bin/brew install game-porting-toolkit
Now, you can install the game-porting-toolkit
Warning: This will take a LONG TIME, and will use up a LOT of system resources because it needs to compile a really large project (LLVM)
brew install game-porting-toolkit
Then, go to this url (on apple.com) to download the actual toolkit, place it somewhere memorable.
First, you need to create a "wine prefix" for your game.
To do this,
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg
Where you would replace my-game-prefix
with whatever you want you want it to be.
You should now change (in the window that pops up) the windows version to "windows 10"
Press ok, and then install your game into my-game-prefix
Finally, to install apple's game porting toolkit, use
ditto [REPLACE THIS WITH WHEREVER YOU PUT THE GAME PORTING TOOLKIT]/lib/ `brew --prefix game-porting-toolkit`/lib/
and finally, to run the executable,
[REPLACE THIS WITH WHEREVER YOU PUT THE GAME PORTING TOOLKIT]/gameportingtoolkit ~/my-game-prefix 'C:\\Program Files\\MyGame\\MyGame.exe'
or, for without the debug GUI
[REPLACE THIS WITH WHEREVER YOU PUT THE GAME PORTING TOOLKIT]/gameportingtoolkit-no-hud ~/my-game-prefix 'C:\\Program Files\\MyGame\\MyGame.exe'
TODO
After 3 hours of trying on M1 pro I just got "did not build error"
`==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j10
CMAKE_PREFIX_PATH: /usr/local/homebrew/opt/bison:/usr/local/homebrew/opt/readline:/usr/local/homebrew/opt/sqlite:/usr/local/homebrew
CMAKE_INCLUDE_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
CMAKE_FRAMEWORK_PATH: /usr/local/homebrew/opt/python@3.11/Frameworks
PKG_CONFIG_PATH: /usr/local/homebrew/opt/libpng/lib/pkgconfig:/usr/local/homebrew/opt/freetype/lib/pkgconfig:/usr/local/homebrew/opt/fontconfig/lib/pkgconfig:/usr/local/homebrew/opt/pcre2/lib/pkgconfig:/usr/local/homebrew/opt/glib/lib/pkgconfig:/usr/local/homebrew/opt/libxau/lib/pkgconfig:/usr/local/homebrew/opt/libxdmcp/lib/pkgconfig:/usr/local/homebrew/opt/libxcb/lib/pkgconfig:/usr/local/homebrew/opt/libx11/lib/pkgconfig:/usr/local/homebrew/opt/libxext/lib/pkgconfig:/usr/local/homebrew/opt/libxrender/lib/pkgconfig:/usr/local/homebrew/opt/lzo/lib/pkgconfig:/usr/local/homebrew/opt/pixman/lib/pkgconfig:/usr/local/homebrew/opt/cairo/lib/pkgconfig:/usr/local/homebrew/opt/openssl@3/lib/pkgconfig:/usr/local/homebrew/opt/readline/lib/pkgconfig:/usr/local/homebrew/opt/sqlite/lib/pkgconfig:/usr/local/homebrew/opt/xz/lib/pkgconfig:/usr/local/homebrew/opt/python@3.11/lib/pkgconfig:/usr/local/homebrew/opt/xorgproto/share/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/homebrew/Library/Homebrew/os/mac/pkgconfig/14
HOMEBREW_GIT: git
HOMEBREW_SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
ACLOCAL_PATH: /usr/local/homebrew/opt/bison/share/aclocal:/usr/local/homebrew/share/aclocal
PATH: /usr/local/homebrew/Library/Homebrew/shims/mac/super:/usr/local/homebrew/opt/bison/bin:/usr/local/homebrew/opt/cmake/bin:/usr/local/homebrew/opt/meson/bin:/usr/local/homebrew/opt/ninja/bin:/usr/local/homebrew/opt/libpng/bin:/usr/local/homebrew/opt/freetype/bin:/usr/local/homebrew/opt/fontconfig/bin:/usr/local/homebrew/opt/pcre2/bin:/usr/local/homebrew/opt/gettext/bin:/usr/local/homebrew/opt/glib/bin:/usr/local/homebrew/opt/cairo/bin:/usr/local/homebrew/opt/pkg-config/bin:/usr/local/homebrew/opt/openssl@3/bin:/usr/local/homebrew/opt/sqlite/bin:/usr/local/homebrew/opt/xz/bin:/usr/local/homebrew/opt/python@3.11/bin:/usr/local/homebrew/opt/python@3.11/libexec/bin:/usr/bin:/bin:/usr/sbin:/sbin
Error: gobject-introspection 1.78.1 did not build`
I appreciate any idea.