use*_*182 6 macos installer licensing productbuild
我们目前使用productbuild --component将我的mac安装程序构建为pkg文件(根据以下帖子:Mac app store productbuild).
这非常有效,但我还希望为此安装程序添加许可证文件.
使用packagemaker,您可以指定选项--resources [path_to_resources_file].如果将License.txt放在指定的资源文件夹中,则安装程序会神奇地包含许可证步骤.
虽然productbuild的手册页也描述了--resources选项,但实际上这似乎不适用于--component选项.它似乎完全忽略了这个选项.
根据productbuild手册页, - component选项显然只接受产品定义plist(我查看了plist选项,似乎没有应用于许可文件),组件,可选安装路径和输出路径.虽然--sign选项也有效.
有没有人知道在使用productbuild --component时是否有可能(如果是这样,如何)为安装程序包含许可文件?
提前致谢.
伊恩
在作为参数传递给productbuild的分发文件中,包含许可证元素,如下所示:
<?xml version="1.0" encoding="utf-8"?>
<installer-gui-script minSpecVersion="1">
<title>My Awesome App</title>
<welcome file="welcome.html" />
<readme file="readme.html" />
<license file="license.html" />
<conclusion file="conclusion.html" />
<options customize="never" />
<choices-outline>
<line choice="install"/>
</choices-outline>
<choice id="install" visible="true" title="Install" description="Installation description goes here">
<pkg-ref id="com.prosc.RemoteExecution.install.pkg">#installer.pkg</pkg-ref>
</choice>
</installer-gui-script>
Run Code Online (Sandbox Code Playgroud)
这些文件需要出现在您传递给productbuild的--resources参数中指定的任何目录中,如下所示:
productbuild --distribution distribution.xml --resources building/ "Mac Installer.pkg"
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6195 次 |
| 最近记录: |