Posted on 02-12-2018 05:44 AM
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?
Edit
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.
Posted on 02-12-2018 06:11 AM
Simple Package Creator and App Packager are what I use because they are a lot less overhead than Composer.
Posted on 02-12-2018 06:05 AM
10 minutes doesn't sound bad...
But sounds like you're doing snapshots. If it is just a drag & drop, sounds like just drag it, drop it, then drag it into Composer to create the .pkg.
I personally dislike snapshots, but Composer works well enough.
Posted on 02-12-2018 06:11 AM
Simple Package Creator and App Packager are what I use because they are a lot less overhead than Composer.
Posted on 10-11-2022 04:20 AM
How can I use AutoPkg or Simple Package Creator or App Packager to create a .pkg on a specific path like /usr/local/ ? This option is available in composer but I want to do it without composer using different tool
Posted on 02-12-2018 07:05 AM
Just drag the .app from applications into composer and then build as a .pkg. Just make sure to check permissions before building.
Posted on 02-12-2018 12:34 PM
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.
Posted on 02-13-2018 06:01 AM
If it is just a file (or a series of files) being dropped somewhere (like /Applications), I usually use Packages. There are a ton of utilities to accomplish the same task, you just have to pick the one that you find easiest to work with.
Posted on 02-13-2018 12:43 PM
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.
Posted on 02-13-2018 11:04 PM
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
Posted on 10-11-2022 04:20 AM
How can I use AutoPkg or Simple Package Creator or App Packager to create a .pkg on a specific path like /usr/local/ ?
This option is available in composer but I want to do it without composer using different tool
Posted on 02-14-2018 03:39 AM
@Look take a look at the 2 apps I posted above. One of those does exactly that. :)
Posted on 02-14-2018 07:28 AM
You also could consider looking into AutoPkg/AutoPkgr. Many apps distributed by the developer as drag and drop installers have AutoPkg recipes that will generate a pkg for you.
Posted on 10-11-2022 04:21 AM
How can I use AutoPkg or Simple Package Creator or App Packager to create a .pkg on a specific path like /usr/local/ ?This option is available in composer but I want to do it without composer using different tool
Posted on 10-11-2022 04:19 AM
How can I use AutoPkg or Simple Package Creator or App Packager to create a .pkg on a specific path like /usr/local/ ?
This option is available in composer but I want to do it without composer using different tool