Java productbuild--分发:无法加载包xxx.pkg

Java productbuild--分发:无法加载包xxx.pkg,java,macos,app-store,productbuild,pkg-file,Java,Macos,App Store,Productbuild,Pkg File,我正在尝试使用productbuild命令打包一个应用程序,以创建一个包含许可证文件的pkg文件。我是这样做的: # 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

我正在尝试使用productbuild命令打包一个应用程序,以创建一个包含许可证文件的pkg文件。我是这样做的:

# 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:warning:package./tamagoibi.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>

塔马戈宜必思酒店
#Tamagoibi.pkg

使用pkgbuild修复了我原来的问题,我发现这真的很好,帮助我将许可证添加到安装程序中。

好的,我刚刚发现必须使用pkgbuild命令创建第一个版本。。。现在可以正确安装应用程序了。问题是我仍然看不到我的许可证文件。。。