Skip to content

Instantly share code, notes, and snippets.

@chilcote
Created November 25, 2010 23:35
Show Gist options
  • Save chilcote/716074 to your computer and use it in GitHub Desktop.
Save chilcote/716074 to your computer and use it in GitHub Desktop.
example Makefile for packaging Firefox with custom settings
include /usr/local/share/luggage/luggage.make
TITLE=app_firefox
REVERSE_DOMAIN=com.example.corp
PAYLOAD=unbz2-applications-firefox.app \
pack-firefox-settings-local-settings.js \
pack-firefox-settings-firefox_AA.cfg \
pack-firefox-settings-override.ini
unbz2-applications-firefox.app: firefox.app.tar.bz2 l_Applications
@sudo ${TAR} xjf firefox.app.tar.bz2 -C ${WORK_D}/Applications
@sudo chown -R root:admin "${WORK_D}/Applications/Firefox.app"
pack-firefox-settings-local-settings.js: unbz2-applications-firefox.app local-settings.js
@sudo ${INSTALL} -m 644 -g admin -o root local-settings.js ${WORK_D}/Applications/Firefox.app/Contents/MacOS/defaults/pref/local-settings.js
pack-firefox-settings-firefox_AA.cfg: unbz2-applications-firefox.app firefox_AA.cfg
@sudo ${INSTALL} -m 644 -g admin -o root firefox_AA.cfg ${WORK_D}/Applications/Firefox.app/Contents/MacOS/firefox_AA.cfg
pack-firefox-settings-override.ini: unbz2-applications-firefox.app override.ini
@sudo ${INSTALL} -m 644 -g admin -o root override.ini ${WORK_D}/Applications/Firefox.app/Contents/MacOS/override.ini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment