theme: v-green highlight: atelier-heath-light
1、安裝sonoma系統(tǒng)
1.1 打開(kāi)磁盤(pán)分區(qū)進(jìn)行系統(tǒng)分區(qū)
1.2 點(diǎn)擊顯示所有設(shè)備,并創(chuàng)建sonoma分盤(pán)
1.3 下載sonoma安裝包并進(jìn)行下載
https://mrmacintosh.com/macos-sonoma-full-installer-database-download-directly-from-apple/
1.4 選擇sonoma分盤(pán)安裝sonoma安裝包
1.5 最直接方法(升級(jí)到最新系統(tǒng)–推薦)
2、工具安裝
2.1 安裝xcode 15
https://developer.apple.com/download/all/?q=Xcode%2015
2.2 安裝Game porting toolkit beta
3、環(huán)境配置
3.1 打開(kāi)終端
3.2 安裝Rosett
softwareupdate --install-rosetta
3.3 開(kāi)啟x86_64模式
arch -x86_64 zsh
3.4 安裝Homebrew,一定要在x86環(huán)境下安裝Homebrew
官方
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
加速版
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
注意
如果您以前安裝過(guò) Homebrew,則建議刪除 ARM64 Homebrew,因?yàn)檫@可能會(huì)干擾此構(gòu)建過(guò)程。使用 Homebrew 卸載腳本或刪除該文件夾`/opt/homebrew/bin`。如果您希望同時(shí)安裝 ARM64 和 x86 版本的brew,則可以在文件中添加“brew-switcher”,`.zshrc`以允許根據(jù)活動(dòng)體系結(jié)構(gòu)使用任一版本。安裝 Brew 后,您可以按照本節(jié)末尾的步驟來(lái)實(shí)現(xiàn)此目的。
3.5 設(shè)置路徑
(echo; echo 'eval "$(/usr/local/bin/brew shellenv)"') >> /Users/$USER/.zprofile
eval "$(/usr/local/bin/brew shellenv)"
3.6 執(zhí)行命令
which brew
如果顯示/usr/local/bin/brew,則說(shuō)明成功
注意
如果此命令不打印`/usr/local/bin/brew`,使用此命令:
export PATH=/usr/local/bin:${PATH}
4、建立連接,拉去Apple資源
4.1 拉取Apple的資源
brew tap apple/apple http://github.com/apple/homebrew-apple
4.2 安裝游戲移植工具包公式。此公式下載并編譯幾個(gè)大型軟件項(xiàng)目。這需要多長(zhǎng)時(shí)間取決于您計(jì)算機(jī)的速度。完成可能需要 1-2 個(gè)多小時(shí),具體取決于 Mac 的速度。
brew -v install apple/apple/game-porting-toolkit
看到這張圖片就說(shuō)明編譯成功了,M2 Max+千兆網(wǎng)大概花了20分鐘,編譯時(shí)間和設(shè)備有很大關(guān)系
注意
如果在安裝過(guò)程中您看到諸如 “錯(cuò)誤:游戲移植工具包:未知或不受支持的 macOS 版本::dunno”之類的錯(cuò)誤,則您的 Homebrew 版本不支持 macOS Sonoma。更新到最新版本的 Homebrew,然后重試,或者一直失敗請(qǐng)執(zhí)行以下命令
brew update ; brew -v install apple/apple/game-porting-toolkit
5、確保工具包已是最新版本
確保您處于 x86_64 shell 中,以便在 Rosetta 環(huán)境中繼續(xù)執(zhí)行以下步驟。所有后續(xù)命令都應(yīng)在此 shell 中運(yùn)行,如果您不確定自己是否處于正確的 shell 中或只是進(jìn)行更新,請(qǐng)重新運(yùn)行。
arch -x86_64 zsh
運(yùn)行 Homebrew 以收集潛在更新并升級(jí) Apple 的 GPTK 公式:
brew update && brew upgrade apple/apple/game-porting-toolkit
6、準(zhǔn)備工具包
6.1 執(zhí)行下面的命令,這是復(fù)制了lib的資源到brew環(huán)境里面
ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ `brew --prefix game-porting-toolkit`/lib/
6.2 執(zhí)行下面的命令
cp /Volumes/Game\ Porting\ Toolkit*/gameportingtoolkit* /usr/local/bin
6.3 配置Wine Prefix環(huán)境
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg
my-game-prefix可以換成你想要的英文名字
6.4 選擇Windows10,點(diǎn)OK
7、安裝windows軟件或者windows游戲(這里用原神做演示)
7.1 去官方下載原神安裝包
7.2 安裝原神,執(zhí)行以下指令
gameportingtoolkit ~/my-game-prefix ~/Downloads/SteamSetup.exe
7.3 運(yùn)行原神
gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)/yuanshen/yuanshen.exe'
C:\Program Files (x86)/yuanshen/yuanshen.exe這里是你安裝路徑,
8、如何找到自己的windows系統(tǒng)
文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-713025.html
文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-713025.html
到了這里,關(guān)于手把手教你安裝蘋(píng)果官方轉(zhuǎn)譯工具Game Porting Toolkit ,用Mac輕松玩轉(zhuǎn)windows以及3A大作的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!