问题
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:
- Adding another application
- 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