Mac运行暗黑4

一.更新到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'
  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值