summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Fondrie-Teitler <simonft@riseup.net>2017-12-12 14:20:29 -0500
committerKali Kaneko <kali@leap.se>2017-12-20 15:30:57 +0100
commit86fd23bdb0312b5b69062116128c64952bbec57f (patch)
treee20c58e48b4601353260946320a5b57b580a9c94
parentcaf3e217935faabc6d47672b058e7c8eb0cb5a63 (diff)
[pkg] add make target for headless builds
This adds a make target which allows for headless builds. It runs pyinstaller and copies some required files.
-rw-r--r--Makefile1
-rw-r--r--pkg/bundles/build.mk6
2 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f6263d81..f3e8d808 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
DIST=dist/bitmask
+HEADLESS_DIST=dist/bitmask-nox
NEXT_VERSION = $(shell cat pkg/next-version)
DIST_VERSION = dist/bitmask-$(NEXT_VERSION)/
diff --git a/pkg/bundles/build.mk b/pkg/bundles/build.mk
index 0def86e4..1a2e7932 100644
--- a/pkg/bundles/build.mk
+++ b/pkg/bundles/build.mk
@@ -105,3 +105,9 @@ bundle_upload:
bundle_clean:
rm -rf "dist" "build"
+
+bundle_headless:
+ pyinstaller -y pkg/pyinst/headless.spec
+ cp $(VIRTUAL_ENV)/lib/python2.7/site-packages/_scrypt.so $(HEADLESS_DIST)
+ cp src/leap/bitmask/core/bitmaskd.tac $(HEADLESS_DIST)
+ cp $(VIRTUAL_ENV)/lib/python2.7/site-packages/leap/common/cacert.pem $(HEADLESS_DIST)/