Skip to content

使用 Game Porting Toolkit 运行原神

October 17, 2024 by ccforeverd

讲述如何在 MacOS 上启动原神

安装Game Porting Tools

参考文档: https://www.bilibili.com/read/cv24310042/

  • MacOS 14.0 以上
  • 安装 Game Porting Toolkit
  • 安装 Command Line Tools for Xcode 15 beta
  • 安装 Rosett
    • Terminal 输入 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 ToolkitDMG 文件 (此处是必须的)
    • 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