The problem is that reproducing builds with many different project collaborators is a PITA, enter The Luggage.
Here's a hello world.
Download git and clone and install the luggage.
git clone https://github.com/unixorn/luggage cd luggage make bootstrap_filesWrite a simple Makefile (this assumes you have copied PackageMaker.app Auxiliary tools into /Applications):
include /usr/local/share/luggage/luggage.make TITLE=Hello_World REVERSE_DOMAIN=com.testing.something PAYLOAD=pack-usr-local-bin-hello_world PACKAGEMAKER=/Applications/PackageMaker.app/Contents/MacOS/PackageMakerCreate a dummy file to install, and build the dmg:
touch hello_world make dmgYou'll get a Hello_World-20121016.dmg containing Hello_World-20121016.pkg, that when installed will create /usr/local/bin/hello_world
No comments:
Post a Comment