2010-05-11

Easy Script-Only Packages with the Luggage

Saw a post today on MacEnterprise from someone looking for an easy way of making a package that doesn't install any files, just runs a script during installation. Payloadless packages are quite easy to create with the Luggage - here's how:

1) Make a new directory. cd into it.
2) Write your script, call it postinstall.
3) Make a new file named Makefile with the following contents:


include /usr/local/share/luggage/luggage.make


TITLE=name_of_your_package_with_no_spaces_or_punctuation
REVERSE_DOMAIN=com.example.corp
PAYLOAD=pack-script-postinstall

4) make dmg.

make dmg will create a dmg file named TITLE-YYYYMMDD.dmg containing the package TITLE-YYYYMMDD.pkg.


1 comment:

Gary said...

I am always amazed when people make this much harder than it should be. Thanks again for the tool!

Creative Commons License

This work is licensed under a Creative Commons License.
Copyright 2007-2010, Joseph P. Block, Some Rights Reserved.

Creative Commons Logo