So, what is the best way of creating a pkg from the installers that are just drag and drop but dont contain actual pkg files?
I am asking as installing the package, and then capturing changes takes about 10 minutes on the machines I use to build, as they have so much other stuff on them
Solved! Go to Solution.
I second using Composer by dragging the app (and any relevant associated files). I don't use Composer much for snapshots these days as I try to stay as close to the vendor package as possible, but Composer is great for giving me a fast GUI for building my own packages through drag-and-drop. Definitely second getting your permissions right though...one time I built 4-5 drag n drop packages quickly and wasn't paying attention to permissions...luckily I only hosed my test machine, but that could have been bad.
Just out of interest, does anyone know a tool that takes a vendor DMG and makes a PKG, but still uses the supplied DMG to copy into Applications from?
Just curious as a number of Apps seem to need the source DMG verified during copying with Apples new security protocols, unless their is another way of dealing with this?
EDIT: I have currently been creating this manually using scripting in Composer, it's easy enough but an automatic tool could be nice.
This might help. Open terminal and run the below command. Copy the .app from .dmg to desktop first.
sudo pkgbuild --install-location /Applications --component ./Desktop/Firefox.app ./Desktop/Mozilla Firefox.pkg
--install-location : destination location where the .app should be installed.
--component: path to the source .app