美文网首页
macOS下编译Clover教程

macOS下编译Clover教程

作者: bugprogrammer | 来源:发表于2019-01-20 16:45 被阅读0次

    随着macOS 10.14公测版本的发布,黑苹果用户对Clover新版本的需求提高,想要最新版本的Clover最直接的方法就是源码编译,方便快捷,教程如下。

    安装相关环境

    Xcode

    • Mac App Store商店安装Xcode
    • 终端下输入如下命令并按提示安装
    xcode-select --install
    

    python

    • 官网下载安装即可

    准备编译脚本Build_Clover.command

    • 输入如下命令下载编译脚本并进入相应目录
    git clone https://github.com/Micky1979/Build_Clover.git && cd Build_Clover
    
    • 给予执行权限
    chmod u+x Build_Clover.command
    
    • 执行脚本,中途会自动下载Clover最新源码,请等待,下载源码过程以及成功进入菜单如图所示
    ./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 执行自定义脚本
    • build existing revision (no update, for testing only) 编译已存在版本,仅供测试使用
    • build existing revision for release (no update, standard build) 编译已存在版本,不更新,常规编译
    • build existing revision with custom macros enabled 启用宏的模式下编译
    • enter Developers mode (only for devs) 进入开发模式
    • Try Clover Configurator Pro.app 尝试启动Clover Configurator
    • edit the configuration file 编辑配置文件
    • Exit 退出菜单

    编译Clover

    脚本菜单中选择build existing revision for release (no update, standard build)->Standard x64 only->Standard开始编译,过程请等待。编译结束后会自动打开clover的pkg安装包所在目录。安装此pkg包即可升级到最新版本的Clover。

    image
    image

    相关文章

      网友评论

          本文标题:macOS下编译Clover教程

          本文链接:https://www.haomeiwen.com/subject/pknxjqtx.html