隨著macOS 10.14公測版本的發(fā)布,黑蘋果用戶對Clover新版本的需求提高,想要最新版本的Clover最直接的方法就是源碼編譯,方便快捷,教程如下。
安裝相關(guān)環(huán)境
Xcode
- Mac App Store商店安裝Xcode
- 終端下輸入如下命令并按提示安裝
xcode-select --install
python
- 官網(wǎng)下載安裝即可
準(zhǔn)備編譯腳本Build_Clover.command
- 輸入如下命令下載編譯腳本并進(jìn)入相應(yīng)目錄
git clone https://github.com/Micky1979/Build_Clover.git && cd Build_Clover
- 給予執(zhí)行權(quán)限
chmod u+x Build_Clover.command
- 執(zhí)行腳本,中途會自動(dòng)下載Clover最新源碼,請等待,下載源碼過程以及成功進(jìn)入菜單如圖所示
./Build_Clover.command

image

image
Build_Clover.command菜單解釋
- update Clover only (no building) 更新Clover源碼不編譯
- update Clover + force edk2 update (no building) 更新Clover源碼和Build_Clover腳本文件,不編譯
- run my script on the source 執(zhí)行自定義腳本
- build existing revision (no update, for testing only) 編譯已存在版本,僅供測試使用
- build existing revision for release (no update, standard build) 編譯已存在版本,不更新,常規(guī)編譯
- build existing revision with custom macros enabled 啟用宏的模式下編譯
- enter Developers mode (only for devs) 進(jìn)入開發(fā)模式
- Try Clover Configurator Pro.app 嘗試啟動(dòng)Clover Configurator
- edit the configuration file 編輯配置文件
- Exit 退出菜單
編譯Clover
腳本菜單中選擇build existing revision for release (no update, standard build)->Standard x64 only->Standard開始編譯,過程請等待。編譯結(jié)束后會自動(dòng)打開clover的pkg安裝包所在目錄。安裝此pkg包即可升級到最新版本的Clover。

image

image