Automating PackageMaker

In addition to the graphical interface for PackageMaker, there is also a command-line interface. The command-line interface allows for the automation of package creation. Both interfaces use the same executable. That is, to invoke the command-line interface, you would use the following command:

/Developer/Applications/Utilities/PackageMaker.app/ 
	Contents/MacOS/PackageMaker -build [other options]

typed on one line without spaces in the path. There is a more convenient symlink located at:

/Developer/Tools/packagemaker

The CLI can create packages, metapackages, or distributions. The easiest method is to specify a PackageMaker .pmproj document created in the GUI, but it is also possible to specify all necessary parameters.

For full details on the PackageMaker CLI, see the man page:

man packagemaker