我有一个 NWJS Mac App 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.)
请提供建议。