当前位置:   article > 正文

Mac运行暗黑4_macos 暗黑4

macos 暗黑4

一.更新到macOs Sonoma

在这里插入图片描述

二.下载Game porting toolkit beta和Command Line Tools for Xcode 15 beta

地址: Apple Developer
在这里插入图片描述
在这里插入图片描述

三.打开 Terminal

1.安装Rosetta转译工具

softwareupdate --install-rosetta
  • 1

2.将本次操作shell切换到x86_64

arch -x86_64 zsh
  • 1

3.安装Homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  • 1

or:国内

/bin/bash -c "$(curl -fsSL https://gitee.com/ineo6/homebrew-install/raw/master/install.sh)"
  • 1

4.检测是否安装成功

which brew
  • 1

输出

/usr/local/bin/brew
  • 1

5.Homebrew 添加 Apple仓库

brew tap apple/apple http://github.com/apple/homebrew-apple
  • 1

or:

brew tap apple/apple https://gitclone.com/github.com/apple/homebrew-apple.git
  • 1

6.更新Homebrew

brew update
  • 1

7.安装这一步很慢,耐心等待,如果遇到某一包安装失败,请使用brew install xxxx手动安装

brew -v install apple/apple/game-porting-toolkit
  • 1

三.配置GPTK

1.将Game Porting Toolkit库目录复制到Wine的库目录中

ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ `brew --prefix game-porting-toolkit`/lib/
  • 1

2.将游戏移植工具包DMG中的3个脚本放入/usr/local/bin中

cp /Volumes/Game\ Porting\ Toolkit*/gameportingtoolkit* /usr/local/bin
  • 1

四.Wine配置

1.安装虚拟C盘,主目录中创建一个新的Wine前缀

WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg
  • 1

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
  • 1
  • 2
  • 3

2.下载战网

https://download.battle.net/en-gb/?platform=windows
  • 1

2.安装战网

gameportingtoolkit ~/my-game-prefix ~/Downloads/Battle.net-Setup.exe
  • 1

3.启动游戏

arch -x86_64 gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Diablo IV\Diablo IV Launcher.exe'
  • 1
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/weixin_40725706/article/detail/290254
推荐阅读
相关标签
  

闽ICP备14008679号