Those配置

786 阅读1分钟

those,注入、拦截函数的工具。

安装

  1. 通过brew安装ldid,用于签名。
  • 安装
    $ brew install ldid
  • 卸载
    $ brew uninstall ldid
  • 搜索
    $ brew search ldid
  • 更新
    $ brew upgrade ldid
  • 查看列表
    $ brew list
  1. 安装xz。不安装的话,打包deb包的时候,会报一个"lzma"的错误。
$ brew install xz 
$ sudo cpan IO::Compress::Lzma
  1. 配置THEOS环境变量,在.bash_profile/.zshrc文件中。官网推荐 export THEOS=~/theos/,我的配置是export THEOS=/opt/theos/
export THEOS=/opt/those/
export PATH=$THEOS/bin:$PATH
  1. 将git上的theos clone到THEOS路径下,不要手动下载拖拽,要使用--recursive,因为theos需要许多依赖库。
    $ git clone --recursive https://github.com/theos/theos.git $THEOS