美文网首页
theos安装

theos安装

作者: 哎中文不艾汉语 | 来源:发表于2018-11-09 15:16 被阅读8次

1.指定Theos的安装路径

Theos是放在github上的,使用git命令来clone比较方便。虽然可以放在任何目录下,但是官方建议大家放在 /opt/下 。打开Mac的终端,输入命令行:

export THEOS=/opt/theos

2.上一步,我们已经配置了一个环境变量,现在我们将theos下载到指定的目录,输入命令行:

git clone --recursive https://github.com/theos/theos.git $THEOS

如果有报错没有权限使用下面这句

sudo Git clone --recursive https://github.com/theos/theos.git /opt/theos

然后把/opt/theos的权限改成你自己:

sudo chown $(id -u):$(id -g) /opt/theos

最后把theos的执行路径加入到环境变量中,在~/.bash_profile中加上:

export THEOS="/opt/theos"

在任意目录下(不能是/opt/theos下,否则将创建不成功),输入如下命令创建Theos项目:

/opt/theos/bin/nic.pl NIC 2.0 - New Instance Creator

可以看到这里共有14种模板可供选择,这里我们选择tweak -> 输入Package Name(deb包的名字,类似于bundle identifier)-> tweak的名字 -> 输入”MobileSubstrate Bundel filter“,也就是tweak作用对象的bundle identifier,如:com.apple.springboard -> Done完成。

配置ldid

下载地址https://github.com/downloads/rpetrich/ldid/ldid.zip

参考文章:https://blog.csdn.net/u010545480/article/details/74103748

https://blog.csdn.net/u010545480/article/details/74103748

相关文章

网友评论

      本文标题:theos安装

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