简体   繁体   English

使用裸可执行文件创建.pkg安装程序

[英]Create .pkg installer with bare executable

I can use pkgbuild and productbuild to create decent installers for an app. 我可以使用pkgbuild和productbuild为应用程序创建体面的安装程序。 However, I need to create one that installs a bare executable and launch daemon, and I've hit a wall. 但是,我需要创建一个安装裸露的可执行文件并启动守护程序的程序,并且遇到了麻烦。

The crux of the problem seems to be the RootRelativeBundlePath item in the component list for pkgbuild. 问题的症结似乎是pkgbuild组件列表中的RootRelativeBundlePath项。 Since there's no bundle being installed, no path will work there, but I can't omit RootRelativeBundlePath either. 由于没有安装捆绑软件,因此没有任何路径可以使用,但是我也不能忽略RootRelativeBundlePath。 So I can't generate the component package. 因此,我无法生成组件包。

What do I do? 我该怎么办?

Found an answer to my own question, using the following command to build the component package, skipping the component list plist entirely: 找到了我自己的问题的答案,使用以下命令构建组件包,完全跳过了组件列表plist:

pkgbuild --root software_root --install-location "/" --scripts scripts/ --identifier 'com.blah.pkg.blah' --version '1.0.0' installer.pkg pkgbuild --root software_root --install-location“ /” --scripts scripts / --identifier'com.blah.pkg.blah'--version'1.0.0'installer.pkg

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM