Mac Game Porting Toolkit

Mac Game Porting Toolkit

 2 min read

This works for me on Mac M1, saved for future reference.

System: MacOS Sonoma 14.4.1 (23E224)
XCode CLI version: 15.1
Game porting toolkit version: 1.1

Homebrew

This will install brew to /usr/local/bin/brew even though the M1 version’s brew is installed in /opt/homebrew/bin/brew.

arch -x86_64 zsh
echo `arch` # should print i386
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Set separate profile for brew installation.

if [ "$(arch)" = "arm64" ]; then
    eval "$(/opt/homebrew/bin/brew shellenv)"
else
    eval "$(/usr/local/bin/brew shellenv)"
fi

Install GPTK

Build from source. This takes 3 hours on my Mac M1. The Wiki also offers a prebuild version to save time.

brew tap apple/apple http://github.com/apple/homebrew-apple
brew -v install apple/apple/game-porting-toolkit

The scripts ends with

==> game-porting-toolkit
Please follow the instructions in the Game Porting Toolkit README to complete installation.

Download the Game Porting Toolkit redistributable image from Apple. Open the image and copy it into the GPTK directory.

ditto /Volumes/Game\ Porting\ Toolkit-1.1/redist/lib/ `brew --prefix game-porting-toolkit`/lib/

Initialize Wine

Make directory for Wine to store the Windows stuff. This should pop up a Window. Change the Windows version to Windows 10. Note that the wine64 should be found in /usr/local/opt/game-porting-toolkit/bin/wine64.

mkdir mkdir ~/opt/win10/
WINEPREFIX=mkdir ~/opt/win10/ `brew --prefix game-porting-toolkit`/bin/wine64 winecfg

Install Steeam

Download Steeam and install it.

MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/opt/win10 /usr/local/opt/game-porting-toolkit/bin/wine64 ~/Downloads/SteamSetup.exe

The Wiki suggest that using this command to launch Steam. But it doesn’t work for me.

MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/opt/win10 /usr/local/opt/game-porting-toolkit/bin/wine64 'C:\Program Files/Steam/steam.exe'

This works for me.

WINEPREFIX=~/opt/win10 /usr/local/opt/game-porting-toolkit/bin/wine64 'C:\Program Files/Steam/steam.exe'

The Steam login window should appear.

Reference



Tags: mac