]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
new make target for OS X package creation.
authorRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Thu, 2 Oct 2014 03:46:00 +0000 (09:16 +0530)
committerRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Thu, 2 Oct 2014 03:46:00 +0000 (09:16 +0530)
Makefile

index 94a87556eb3b5b05f9fc0fcda645adf14d03187f..63c964f4fef5ab81ba8d5f35969d6bd784d0ed67 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -31,6 +31,24 @@ build:
        $(PYTHON) setup.py build
        touch .built
 
+# build osx packages
+buildosxpkg:
+       $(PYTHON) setup.py build_for_package
+       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-darwin.pkg
 
 # TESTING