如何在PackageScript中为同一产品的不同配置创建包?
我们从 Ant 脚本调用 Mac PackageMaker,来构建我们的产品安装包。
我想传递一个参数“productConfiguration”,它将指示包包含或排除某些组件,例如为了创建更小的试用版本包。
实现这一目标的正确方法是什么?
注意:
在 Windows 中,我们使用 InstallShield 的功能、条件、发布标志、配置标志。 PackageMaker 中是否有类似的概念?)
pkmkdoc 规范 1.12 的文档在哪里?
我能想到的唯一方法是使用模板在 install.pmdoc 智能文件夹内生成[一些] xml 文件。但它对我来说看起来很不优雅。
we call Mac PackageMaker from an Ant script, to build our product installation package.
I would like to pass a parameter 'productConfiguration', that will direct the package to include or exclude certain components, e.g. in order to create a smaller Trial version package.
What is the correct way to achieve that?
Notes:
In Windows we use InstallShield's Features, Conditions, Release Flags, Configuration Flags.
Are there similar concepts in PackageMaker?)Where is the documentation of pkmkdoc spec 1.12?
The only way I can think of, is to generate [some of] the xml files inside the install.pmdoc smart folder, using templates. But it looks very inelegant to me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Packagemaker 不包含很多类似这样的复杂功能。我建议通过创建一个单独的构建目标来构建试用安装程序来调整 ant 脚本。该目标可以自定义包含的文件和 PackageMaker 参数。
Packagemaker doesn't contain a lot of sophisticated features for things like this. I would suggest tweaking the ant script by creating a separate build target that builds the trial installer. This target can customize both the files included and the PackageMaker parameters.