summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'pkg')
-rw-r--r--pkg/bundles/README.rst13
-rw-r--r--pkg/bundles/build.mk (renamed from pkg/pyinst/build.mk)15
-rw-r--r--pkg/bundles/win_postbuild.bat (renamed from pkg/pyinst/win_postbuild.bat)0
-rw-r--r--pkg/pyinst/Makefile1
4 files changed, 24 insertions, 5 deletions
diff --git a/pkg/bundles/README.rst b/pkg/bundles/README.rst
new file mode 100644
index 0000000..d775435
--- /dev/null
+++ b/pkg/bundles/README.rst
@@ -0,0 +1,13 @@
+bundle utilities
+----------------
+In this folder there are several makefile/batch scripts that are used during
+the bundling process.
+
+The bundles are first generated by PyInstaller (using the spec file in
+``pkg/pyinst``), and then we arrange the various helpers in a way that is
+specific to every platform.
+
+The scripts in this folder are expected to be called from the root folder of
+the project, and therefore all the paths are relative paths to the root folder.
+
+
diff --git a/pkg/pyinst/build.mk b/pkg/bundles/build.mk
index 2ad224b..158293b 100644
--- a/pkg/pyinst/build.mk
+++ b/pkg/bundles/build.mk
@@ -2,6 +2,7 @@
#
OSX_RES = dist/Bitmask.app/Contents/Resources
OSX_CON = dist/Bitmask.app/Contents/MacOS
+OSX_CERT = "Developer ID Installer: LEAP Encryption Access Project"
default:
@@ -51,10 +52,7 @@ bundle_osx_helpers:
cp -r pkg/osx/daemon $(DIST_VERSION)/apps/helpers/
cp -r pkg/osx/openvpn $(DIST_VERSION)/apps/helpers/
-
-bundle_linux: bundle bundle_linux_gpg bundle_linux_vpn bundle_linux_helpers
-
-bundle_osx: bundle bundle_osx_helpers
+bundle_osx_missing:
cp $(DIST_VERSION)/lib/_scrypt.so $(OSX_CON)/
cp $(DIST_VERSION)/lib/bitmaskd.tac $(OSX_CON)/
cp -r $(DIST_VERSION)/lib/leap $(OSX_CON)/
@@ -68,6 +66,15 @@ bundle_osx: bundle bundle_osx_helpers
wget https://downloads.leap.se/thirdparty/osx/openvpn/openvpn -O $(OSX_RES)/openvpn.leap
chmod +x $(OSX_RES)/openvpn.leap
+bundle_osx_pkg:
+ pkg/osx/quickpkg --output dist/Bitmask-$(NEXT_VERSION)_pre.pkg --scripts pkg/osx/scripts/ dist/Bitmask.app/
+ productsign --sign $(OSX_CERT) dist/Bitmask-$(NEXT_VERSION)_pre.pkg dist/Bitmask-$(NEXT_VERSION).pkg
+
+
+bundle_linux: bundle bundle_linux_gpg bundle_linux_vpn bundle_linux_helpers
+
+bundle_osx: bundle bundle_osx_helpers bundle_osx_missing bundle_osx_pkg
+
bundle_win:
pyinstaller -y pkg/pyinst/app.spec
cp ${VIRTUAL_ENV}/Lib/site-packages/_scrypt.pyd $(DIST)
diff --git a/pkg/pyinst/win_postbuild.bat b/pkg/bundles/win_postbuild.bat
index c4d9fb0..c4d9fb0 100644
--- a/pkg/pyinst/win_postbuild.bat
+++ b/pkg/bundles/win_postbuild.bat
diff --git a/pkg/pyinst/Makefile b/pkg/pyinst/Makefile
deleted file mode 100644
index 1acde6d..0000000
--- a/pkg/pyinst/Makefile
+++ /dev/null
@@ -1 +0,0 @@
-include build.mk