From e54603bcc08db688855df553197a1be1f6b23dc4 Mon Sep 17 00:00:00 2001 From: Pete Fotheringham Date: Mon, 2 Jan 2012 11:01:20 +0000 Subject: [PATCH] added installer package target --- Makefile.am | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index dc854b5..ad6feea 100644 --- a/Makefile.am +++ b/Makefile.am @@ -232,13 +232,31 @@ icons: ## 2. App bundle ## gtk-app-bundler must be installed +## moonshot-ui.app will be built in moonshot/mac-client-installer/moonshot-ui/ app-bundle: gtk-mac-bundler ./mac/moonshot-ui.bundle ## 3: Installer Package + +installerdir = $(HOME)/moonshot/mac-client-installer + installer: + cd $(installerdir) && pwd + +# fix up the cyrus-sasl links + cd $(installerdir) && mkdir -p sasl/usr/lib + cd $(installerdir)/sasl/usr/lib && ln -fs ../local/lib/sasl2 + cd $(installerdir) && mkdir -p resources -## 4: Disk Image -disk-image: +# Ensure the permissions are correct for the files to be installed + cd $(installerdir) && sudo chown -R root:admin sasl + cd $(installerdir) && sudo chmod -R g+w sasl + +# create the installer package + cd $(installerdir) && /Developer/usr/bin/packagemaker --doc Moonshot\ Client\ Software.pmdoc \ + --version 0.1 --filter "/.DS_Store" --resources ./resources/ --root-volume-only\ + --domain system --verbose --no-relocate -l "/" --target 10.5 \ + --id ja.net.moonshotClientSoftware --out Moonshot\ Client\ Software.pkg + endif -- 2.1.4