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
maybe this will work better for you: https://www.applegamingwiki.com/wiki/Game_Porting_Toolkit
There are now better ways to get GPTK built and most people use the install aware method which is all automated.
if you still want to build it yourself just follow the brew methods in the guide, if you want to skip building you can use the prebuild section, either way the wine part will take a while to finish. If you want to automate the process you can use the install aware GitHub, you wont need to download anything else as it will do it for you and build everything (just make sure you have Xcode 15 beta 8 or higher and the command line tools for Xcode 15 installed), if you already have the GPTK dmg you can also drag that to the field in the app and it will use it instead of grabbing it automatically. Quite simple and straight forward, if you still have an issue using this then it's something with your environment. Just want to say that Whiskey is not really a good way to use GPTK and it seems to only work for some users, if you have issues with Whiskey then don't try to use it and try the install aware methods instead, those work for pretty much everyone.
Once you have it installed just go down to the commands section of the guide, and that will show you the command to start your exe. I simply copy and paste up to the wine prefix and drag my exe into terminal and hit enter, then the app should load. Good luck and let us know how it turns out or if you have any questions.