Skip to content
MuirSandwich
Go back

Creating a PKG from a drag-and-drop DMG

Quick Terminal command for those one off applications that need to be deployed via a .pkg installer:

sudo pkgbuild --install-location [Destination_Path] --component [Actual_Application_Path] [Save_Location].pkg

For example, if you have EazyDraw 8 currently installed in your /Applications folder:

sudo pkgbuild --install-location /Applications/ --component /Applications/EazyDraw\ 8.app/ ~/Desktop/EasyDraw8.pkg

Share this post:

Previous Post
Using a Custom Printer Preset as the Default
Next Post
Verifying the contents of a folder were copied correctly