2017-08-25 84 views
0

我有一个NWJS Mac App hello.app在Mac应用的软件包文件中添加EULA协议

我使用权利签署了应用程序,并创建了一个包hello.pkg,它工作正常。

现在我想在此包中添加一个EULA协议。有人可以建议我应该如何实现这一目标?

我的尝试:

  1. 生成distribution.plist或XML从hello.app

    productbuild --synthesize --product “hello.app/Contents/Info.plist” - -package hello.app distribution.plist

  2. 更新自述/许可证文件的plist

     <installer-gui-script minSpecVersion="1"> 
           <license file="LICENSE.html"/> 
           <readme file="README.html"/> 
         </installer-gui-script> 
    
  3. 现在再次构建以创建包。

    $ productbuild - 水泵distribution.xml hello.pkg

,但我得到的错误:

Cannot copy package "hello.app" into the product. (Bundle-style package "hello.app" is not supported.) 

请提供建议。

+0

嗨,对此有任何建议。 – Swati

回答

0

据我所知--package必须指向由pkgbuild创建的.pkg文件。