summaryrefslogtreecommitdiff
path: root/pkg/pyinst
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/pyinst')
-rw-r--r--pkg/pyinst/Makefile14
-rw-r--r--pkg/pyinst/build.mk24
2 files changed, 25 insertions, 13 deletions
diff --git a/pkg/pyinst/Makefile b/pkg/pyinst/Makefile
index e8d52f8..1acde6d 100644
--- a/pkg/pyinst/Makefile
+++ b/pkg/pyinst/Makefile
@@ -1,13 +1 @@
-build: clean
- pyinstaller -y app.spec
- cp $(VIRTUAL_ENV)/lib/python2.7/site-packages/_scrypt.so dist/bitmask/
- cp ../../src/leap/bitmask/core/bitmaskd.tac dist/bitmask
- mkdir dist/bitmask/leap
- cp -r $(VIRTUAL_ENV)/lib/python2.7/site-packages/leap/bitmask_js/ dist/bitmask/leap
- mv dist/bitmask lib && mkdir dist/bitmask && mv lib dist/bitmask/lib
- cd ../launcher && make
- cp ../launcher/bitmask dist/bitmask/
-
-clean:
- rm -rf dist build
-
+include build.mk
diff --git a/pkg/pyinst/build.mk b/pkg/pyinst/build.mk
new file mode 100644
index 0000000..ea82f9f
--- /dev/null
+++ b/pkg/pyinst/build.mk
@@ -0,0 +1,24 @@
+# This makefile should be called from the topmost bitmask folder
+#
+bundle: bundle_clean
+ pyinstaller -y pkg/pyinst/app.spec
+ cp $(VIRTUAL_ENV)/lib/python2.7/site-packages/_scrypt.so $(DIST)
+ cp src/leap/bitmask/core/bitmaskd.tac $(DIST)
+ mkdir $(DIST)/leap
+ cp -r $(VIRTUAL_ENV)/lib/python2.7/site-packages/leap/bitmask_js/ $(DIST)/leap
+ mv $(DIST) _bundlelib && mkdir $(DIST_VERSION) && mv _bundlelib $(DIST_VERSION)/lib
+ cd pkg/launcher && make
+ cp pkg/launcher/bitmask $(DIST_VERSION)
+
+bundle_tar:
+ cd dist/ && tar cvzf Bitmask.$(NEXT_VERSION).tar.gz bitmask-$(NEXT_VERSION)
+
+bundle_sign:
+ gpg2 -a --sign --detach-sign dist/Bitmask.$(NEXT_VERSION).tar.gz
+
+bundle_upload:
+ rsync --rsh='ssh' -avztlpog --progress --partial dist/Bitmask.$(NEXT_VERSION).* salmon.leap.se:./
+
+bundle_clean:
+ rm -rf dist build
+