第三步享钞,新建三個文件夾
結(jié)構(gòu)大概是
|-{標(biāo)識符}
|–Applications
|–DEBIAN
將解壓出來的xxx.app放入 Applications 中
將control postinst (無后綴的純文本)文件放 DEBIAN 中
Control寫法
Package: 標(biāo)示符 例如 cn.jackyu.wechat2
Name: //deb的名字,可以是中文
Version: //這里寫程序的版本
Architecture: iphoneos-arm
Description: //描述
Maintainer: //維護(hù)人
Author: //作者
postinst寫法(直接復(fù)制)(權(quán)限755)
#!/bin/bash
mkdir -p /private/var/mobile/Documents/
chown -R mobile:mobile /private/var/mobile/Documents/
/bin/su -c uicache mobile
最后杭朱,打包
打開終端
cd Desktop
dpkg-deb -Z xz -b ./{標(biāo)識符}.