Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以使用 pkgbuild 和 productbuild 为应用程序创建体面的安装程序。但是,我需要创建一个安装裸可执行文件和启动守护程序的程序,但我碰壁了。
问题的症结似乎是 pkgbuild 组件列表中的 RootRelativeBundlePath 项。由于没有安装包,因此没有路径可以在那里工作,但我也不能省略 RootRelativeBundlePath。所以无法生成组件包。
我该怎么办?
找到了我自己的问题的答案,使用以下命令构建组件包,完全跳过组件列表 plist:
pkgbuild --root software_root --install-location "/" --scripts scripts/ --identifier 'com.blah.pkg.blah' --version '1.0.0' installer.pkg