准备目录
创建一个目录用来打包,如tmp,tmp下建DEBIAN和Applications两个目录, DEBIAN下建一个文本文件control
tmp目录结构如下:
-DEBIAN
---control
-Applications
control文件就是打包时的配置文件,它也会作为deb包的配置被打包到包中,
文件例子:
Package: com.sharedream.test
Name: test
Version: 0.1
Description: test
Section: test
Depends: firmware (>= 4.3)
Priority: optional
Architecture: iphoneos-arm
Author: test
Homepage: test
Maintainer: test
然后将xcode打包出来的.app文件整个拷贝到Applications目录下,
结构如下:
-DEBIAN
---control
-Applications
---test.app
打包
退出至tmp的上层目录
dpkg-deb -b tmp test.deb
看到如下几行就是打包完成了.
warning, `com.sull.sample/DEBIAN/control' contains user-defined field `Name'
warning, `com.sull.sample/DEBIAN/control' contains user-defined field `Author'
warning, `com.sull.sample/DEBIAN/control' contains user-defined field `Sponsor'
dpkg-deb: ignoring 3 warnings about the control file(s)
拷贝到cydia源中, 重新扫描包生成Packages列表文件, 并压缩成Packages.bz2就可以啦
dpkg-deb -b test test.deb