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
I'm having trouble understanding what's going on. If someone can help me I'd be very thankful.
So I followed the steps under "Evaluation Environment for Windows"'s readme to the exception of a small change:
After doing
brew install apple/apple/game-porting-toolkit
I got an error mentioning [email protected] was no longer supported. Therefore I ended up looking and installed rbenv's [email protected] which fixed it (rbenv/tap/[email protected]
)After the command finished running I couldn't work out the
WINEPREFIX=~/macPorts
brew --prefix game-porting-toolkit/bin/wine64 winecfg
command because... There was no bin directory under/usr/local/opt/game-porting-toolkit
and therefore no wine64 binary.Has anyone experienced this and ended up fixing it? Copying and pasting another wine64 binary from WineHQ did not work as it expects to find
ntdll.so
which does not exist on the Apple's Game Porting Toolkit that was provided.UPDATE
In the meanwhile, I was giving it another go (completely reinstalling brew) and I noticed these errors:
brew link
to a few font packages until I got an error regardingPermissions denied @ dir_s_mkdir - /usr/local/etc/fonts/conf.d
In the end, it seems there's a problem with the C compiler and that's the reason I have no binaries. However, I'm not sure on how to proceed.
UPDATE
More context: I tried installing the following Command Line Tools for XCode but to no avail:
Any version prior to 16 returns some sort of too old of a version error. With 16.X I get the error from before.