是否可以在安装PKG时区分当前的OS X版本。如: if OS >= 10.9.0 install pkg_for_mavericks.pgk if < 10.9.0 install pgk_not_for_mavericks.pgk
在过去,使用传统的PackageMaker,可以将需求映射到包,如所需的大小、目标OS X版本等。
我没有找到任何使用命令行实用程序pkgmaker和productbuild样式创建较新的PKG文件的示例
有什么建议吗?
发布于 2013-12-06 16:04:50
使用带有--distribution参数的productbuild构建包。在分发文件中使用'choice‘和'selected’参数,如下所示: selected="system.compareVersions(system.version.ProductVersion,'10.9') >=0“分发文件的文档在这里:https://developer.apple.com/library/mac/documentation/DeveloperTools/Reference/DistributionDefinitionRef/Chapters/Distribution_XML_Ref.html
https://stackoverflow.com/questions/20218664
复制相似问题