一、安装DebianLinux或Ubuntu系统,默认就自带了dpkg-deb命令。
二、登陆Linux系统,开始制作deb包。
1.下载app.zip
2.解压app.zip
app
├── DEBIAN
│ ├── control
│ ├── postinst (chmod 755 postinst)
│ └── postrm (chmod 755 postinst)
└── Library
└── MobileSubstrate
└── DynamicLibraries
├── WeChat.dylib
└── WeChat.plist
cat app/DEBIAN/control
Package: app
Version: 0.1
Architecture: iphoneos-arm
Maintainer: appauthor
Description: app
ios下的Architecture为iphoneos-arm。以上参数为必须填写。
3.用命令压缩
dpkg-deb -b app app.deb
4.查看压缩结果
dpkg-deb -c app.deb
drwxr-xr-x www-data/www-data 0 2018-06-26 20:29 ./
drwxrwxrwx root/root 0 2017-06-04 21:30 ./Library/
drwxrwxrwx root/root 0 2017-06-04 21:30 ./Library/MobileSubstrate/
drwxrwxrwx root/root 0 2017-06-12 12:45 ./Library/MobileSubstrate/DynamicLibraries/
-rwxrwxrwx root/root 701328 2018-06-26 21:37 ./Library/MobileSubstrate/DynamicLibraries/WeChat.dylib
-rwxrwxrwx root/root 51 2017-06-04 21:30 ./Library/MobileSubstrate/DynamicLibraries/WeChat.plist