Skip to main content

Create .pkg to deploy files and apps

Create a directory named Contents and another named Scripts.

Put the app contents in the Contents directory. 

Put the script in the Scripts directory and name it postinstall, with no extension.

 

Run this command to create the package. Change the identifierinstall-location, version, and package-name.pkg to what is appropriate for the package.

pkgbuild --root Content --scripts Scripts --identifier com.orgname.appname --install-location /path/to/directory --version 1.0 package-name.pkg