From 86fd23bdb0312b5b69062116128c64952bbec57f Mon Sep 17 00:00:00 2001 From: Simon Fondrie-Teitler Date: Tue, 12 Dec 2017 14:20:29 -0500 Subject: [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. --- Makefile | 1 + pkg/bundles/build.mk | 6 ++++++ 2 files changed, 7 insertions(+) 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)/ -- cgit v1.2.3