0
我在使用productbuild命令打包应用程序来创建一个包含许可证文件的pkg文件。下面是我如何做它:productbuild --distribution:package xxx.pkg could not be loaded
# Creates the first package
productbuild --sign "3rd Party Mac Developer Installer: Tamaggo" --component tamaggo\ ibi.app /Applications/ tamaggoibi.pkg
# Creates a package that will hold the first one using a distribution file
productbuild --distribution tamaggo\ ibi.app/Contents/distribution.xml --package-path . --sign "3rd Party Mac Developer Installer: Tamaggo" bassel.pkg
我总是得到以下警告:
productbuild:警告:包./tamaggoibi.pkg无法加载
如果我双击第一个创建的包,安装成功完成。如果我双击另一个,什么都不会发生。
我只是无法弄清楚第一个软件包有什么问题,导致它无法加载。
这里的distribution.xml文件:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN""http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<installer-gui-script minSpecVersion="1">
<title>tamaggo ibi</title>
<license file="license.html" />
<background file="ApplicationBackground.gif" />
<options customize="never" allow-external-scripts="no"/>
<choices-outline>
<line choice="choice0"/>
</choices-outline>
<choice id="choice0" title="Install tamaggo ibi">
<pkg-ref id="tamaggoibi" />
</choice>
<pkg-ref id="tamaggoibi" version="1.6">#tamaggoibi.pkg</pkg-ref>
</installer-gui-script>
好吧,我只知道第一个版本必须使用pkgbuild命令创建......现在它正确安装应用程序。问题是我仍然没有看到我的许可证文件... – iDev