Apple PackageMaker CLI:有什么方法可以包含安装后操作吗?
我有一个在 PackageMaker GUI 中设计的 PackageMaker .pmdoc。侧边栏上的顶级包项目(内容上方)有两个安装后操作。它们是“打开文件”操作。
当我在 PackageMaker GUI 中构建包时,生成的 .mpkg 包括: Contents/Packages/packagenamePostflight.pkg
但是当我使用 CLI 构建包时,Postflight.pkg 丢失。
我使用以下命令通过 CLI 进行构建:/Developer/usr/bin/packagemaker --doc package.pmdoc/ --out package.mpkg
在输出的顶部,它告诉我:packagemaker[55900:903] 警告:未知或已弃用的操作
packagemaker[55900:903] 警告:未知或已弃用的操作
Google 告诉我其他人过去也遇到过此问题,但没有找到解决方案: http://lists.apple.com/archives/Installer-dev /2010/Jan/msg00003.html
除了不使用PackageMaker之外,还有人有什么想法吗?
I have a PackageMaker .pmdoc designed in the PackageMaker GUI. The top level package item on the sidebar (above the contents) has two Postinstall Actions. They're "Open File" actions.
When I build the package inside the PackageMaker GUI, the resulting .mpkg includes:Contents/Packages/packagenamePostflight.pkg
But when I build the package with the CLI, the Postflight.pkg is missing.
I built with the CLI using the command:/Developer/usr/bin/packagemaker --doc package.pmdoc/ --out package.mpkg
At the top of the output, it tells me:packagemaker[55900:903] Warning: unknown or deprecated action
packagemaker[55900:903] Warning: unknown or deprecated action
Google tells me others have encountered this problem in the past, without finding a solution:
http://lists.apple.com/archives/Installer-dev/2010/Jan/msg00003.html
Anyone have any ideas besides not using PackageMaker?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能需要考虑放弃 PackageMaker。我刚刚切换到 Iceberg,尽管它有自己的怪癖,但我发现它在处理安装后任务时更聪明。
You may want to consider abandoning PackageMaker. I just switched to Iceberg and although it has its own quirks, I found it smarter when it dealt with post installation tasks.