【问题标题】:productbuild --distribution : package xxx.pkg could not be loadedproductbuild --distribution : 无法加载包 xxx.pkg
【发布时间】:2013-05-15 19:23:19
【问题描述】:

我正在尝试使用 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:警告:无法加载包 ./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 命令创建第一个构建......现在它可以正确安装应用程序。问题是我仍然看不到我的许可证文件...

标签: java macos app-store productbuild pkg-file


【解决方案1】:

使用 pkgbuild 解决了我最初的问题,我发现这非常好 post 帮助我将许可证添加到安装程序。

【讨论】:

    猜你喜欢
    • 2011-10-10
    • 2012-01-01
    • 2021-07-05
    • 2018-03-11
    • 2019-10-16
    • 2017-09-24
    • 2016-11-30
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多