一.更新到macOs Sonoma
二.下载Game porting toolkit beta和Command Line Tools for Xcode 15 beta
地址: Apple Developer
三.打开 Terminal
1.安装Rosetta转译工具
softwareupdate --install-rosetta
2.将本次操作shell切换到x86_64
arch -x86_64 zsh
3.安装Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
or:国内
/bin/bash -c "$(curl -fsSL https://gitee.com/ineo6/homebrew-install/raw/master/install.sh)"
4.检测是否安装成功
which brew
输出
/usr/local/bin/brew
5.Homebrew 添加 Apple仓库
brew tap apple/apple http://github.com/apple/homebrew-apple
or:
brew tap apple/apple https://gitclone.com/github.com/apple/homebrew-apple.git
6.更新Homebrew
brew update
7.安装这一步很慢,耐心等待,如果遇到某一包安装失败,请使用brew install xxxx手动安装
brew -v install apple/apple/game-porting-toolkit
三.配置GPTK
1.将Game Porting Toolkit库目录复制到Wine的库目录中
ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ `brew --prefix game-porting-toolkit`/lib/
2.将游戏移植工具包DMG中的3个脚本放入/usr/local/bin中
cp /Volumes/Game\ Porting\ Toolkit*/gameportingtoolkit* /usr/local/bin
四.Wine配置
1.安装虚拟C盘,主目录中创建一个新的Wine前缀
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg
2.选择Windows 10.,选择Apply
五.配置Battle
1.更新Wineprefix
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k
2.下载战网
https://download.battle.net/en-gb/?platform=windows
2.安装战网
gameportingtoolkit ~/my-game-prefix ~/Downloads/Battle.net-Setup.exe
3.启动游戏
arch -x86_64 gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Diablo IV\Diablo IV Launcher.exe'