【发布时间】:2018-02-03 10:28:18
【问题描述】:
我有一个 NWJS Mac 应用 hello.app。
我使用权利签署了应用程序并创建了一个可以正常工作的包 hello.pkg。
现在我希望在此包中添加EULA 协议。有人可以建议我如何实现这一目标吗?
我尝试了什么:
-
从 hello.app 生成 distribution.plist 或 xml
productbuild --synthesize --product "hello.app/Contents/Info.plist" --package hello.app distribution.plist
-
使用自述文件/许可证文件更新 plist
<installer-gui-script minSpecVersion="1"> <license file="LICENSE.html"/> <readme file="README.html"/> </installer-gui-script> -
现在再次构建以创建包。
$ productbuild --distribution distribution.xml hello.pkg
但我得到错误:
Cannot copy package "hello.app" into the product. (Bundle-style package "hello.app" is not supported.)
请提供建议。
【问题讨论】:
-
嗨,对此有任何建议。