I have an NWJS Mac App hello.app.
I signed the app using entitlements and created a package hello.pkg which works fine.
Now I wish to add an EULA agreement inside this package. Can someone suggest me how should I achieve this?
What I tried:
Generate distribution.plist or xml from hello.app
productbuild --synthesize --product "hello.app/Contents/Info.plist" --package hello.app distribution.plist
Update the plist with readme/license files
<installer-gui-script minSpecVersion="1"> <license file="LICENSE.html"/> <readme file="README.html"/> </installer-gui-script>
Now again build to create the package.
$ productbuild --distribution distribution.xml hello.pkg
But I get error:
Cannot copy package "hello.app" into the product. (Bundle-style package "hello.app" is not supported.)
Please provide suggestions.