参考:
https://www.unix.com/man-page/osx/1/pkgbuild/
Pkgbuild 创建component package(pkg文件)。
productbuild 创建product archive(也是个pkg文件,可以包含多个component package)。
pkgutil可以展开prodcut archive 做一些修改,然后再生成新的archive。
pkgbuild --analyze --root ./build_path DemoComponents.plist
pkgbuild --root ./build_path --component-plist DemoComponents.plist --scripts ./Scripts --identifier "Demo.pkg" --install-location /Applications Demo.pkg
productbuild --synthesize --package Demo.pkg Distribution.xml
productbuild --distribution Distribution.xml --package-path Demo.pkg --resources Resources Demo_Installer.pkg
pkgutil –expand thePackage.pkg /destination
pkgutil --flatten
本文详细介绍使用pkgbuild和productbuild工具创建MacOS安装包的方法。包括如何分析、构建组件包,合成产品归档,以及利用pkgutil进行归档的展开和修改。适合希望为MacOS应用程序创建稳定安装流程的开发者。
8419

被折叠的 条评论
为什么被折叠?



