Create PackageMaker project file on the command line

左心房为你撑大大i 提交于 2019-12-12 04:04:26

问题


Is there any way of creating a pmdoc (PackageMaker) project from the command line?

I am trying to automate the process of creating the installer and would like to script tasks like:

  1. Adding another application
  2. Updating the installer project when the apps it contains change.

My question is: Is there a command line tool I can use to construct a packagemaker project on the command line?

For example: packagemaker will build an installer from a .pmdoc folder structure.

What can I use to create the .pmdoc folder structure from the command line?


回答1:


There is no command-line tool to generate .pmdoc files. PackageMakers --root option allows you to generate packages. The other parameter of --root allow you to set stuff like the title, package identifier and so on.

As Pooria Azimia already commented, PackageMaker is deprecated. From own experience I can only recommend to use the new tools.




回答2:


No, I don't think so such tool is available. I explored the options and then come up with the solution:

I have created a .pmdoc file and then ran the command as below:

PackageMaker --doc "your.pmdoc" --version buildnumber --title "Installer.pkg" --out "/Desktop/Installer1.pkg"

Command will create an installer. However, I won't be able to modify the installer version in this solution. Actually, I was looking for the command to change the content of .pmdoc but didn't find anything yet.



来源:https://stackoverflow.com/questions/11149169/create-packagemaker-project-file-on-the-command-line

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!