From: Daira Hopwood Date: Mon, 6 Oct 2014 22:46:29 +0000 (+0100) Subject: New make target for OS X package creation. X-Git-Url: https://git.rkrishnan.org/uri/%3C?a=commitdiff_plain;h=8c2b3c3e1871fe82b70d06a403d9f0a1198279fc;p=tahoe-lafs%2Ftahoe-lafs.git New make target for OS X package creation. Author: Ramakrishnan Muthukrishnan Signed-off-by: Daira Hopwood --- diff --git a/Makefile b/Makefile index 3905a8de..06ec12df 100644 --- 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 bin/tahoe @python -c 'import allmydata; print allmydata.__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