使用 Game Porting Toolkit 运行原神
October 17, 2024 by
讲述如何在 MacOS 上启动原神
安装Game Porting Tools
参考文档: https://www.bilibili.com/read/cv24310042/
MacOS14.0以上- 安装
Game Porting Toolkit - 安装
Command Line Tools for Xcode 15 beta - 安装
RosettTerminal输入softwareupdate --install-rosetta
- 开启
x86_64架构Terminal输入arch -x86_64 zsh
- 安装
Homebrew(必须在x86_64架构下)Terminal输入/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- 拉取
Apple资源Terminal输入brew tap apple/apple http://github.com/apple/homebrew-apple
- 编译
Terminal输入brew -v install apple/apple/game-porting-toolkit
- 挂载
Porting Toolkit的DMG文件 (此处是必须的)Terminal输入ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ `brew --prefix game-porting-toolkit`/lib/Terminal输入cp /Volumes/Game\ Porting\ Toolkit*/gameportingtoolkit* /usr/local/bin/
- 配置
Wine Prefix环境Terminal输入WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg- 选择
Windows 10作为Windows版本
安装原神
- 下载原神安装包 官网
- 打开安装包
Terminal输入MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 原神安装包地址
- 安装完成后
Terminal输入MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 启动器位置(任何exe文件)- 示例:
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 ~/my-game-prefix/drive_c/Program\ Files/Genshin\ Impact/launcher.exe