]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
New make target for OS X package creation.
authorDaira Hopwood <daira@jacaranda.org>
Mon, 6 Oct 2014 22:46:29 +0000 (23:46 +0100)
committerDaira Hopwood <daira@jacaranda.org>
Mon, 13 Oct 2014 15:36:17 +0000 (16:36 +0100)
Author: Ramakrishnan Muthukrishnan <ram@leastauthority.com>
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
Makefile

index 3905a8de062dbb83a90926668b1f47f6d659262f..1404bdff262529593a474bc3c397278138e6fccf 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -31,6 +31,28 @@ build:
        $(PYTHON) setup.py build
        touch .built
 
+# build OS X pkg packages
+.PHONY: build-osx-pkg
+build-osx-pkg:
+       $(PYTHON) setup.py build
+       touch .built
+
+# create component pkg
+       pkgbuild --root $(shell pwd) \
+       --identifier com.leastauthority.tahoe \
+       --version $(shell $(PYTHON) ./setup.py --version) \
+       --ownership recommended \
+       --install-location /Applications/tahoe.app \
+       --scripts $(shell pwd)/misc/build_helpers/osx/scripts \
+       tahoe-lafs.pkg
+
+# create product archive
+       productbuild --distribution $(shell pwd)/misc/build_helpers/osx/Distribution.xml \
+       --package-path . \
+       tahoe-lafs-osx.pkg
+
+# remove intermediate pkg
+       rm -f tahoe-lafs.pkg
 
 # TESTING