diff options
author | Kali Kaneko <kali@leap.se> | 2017-06-19 17:01:58 -0700 |
---|---|---|
committer | Kali Kaneko (leap communications) <kali@leap.se> | 2017-06-20 02:06:19 +0200 |
commit | 51011053093c87ca7ff2e024734578a5dce0dbfa (patch) | |
tree | 41246b001d1f1ac8717829bdef5a4e2b74ce26bd /pkg/pyinst | |
parent | 70d424b2a0f873afd17dc493f46818a5658de954 (diff) |
[pkg] add missing steps to produce a functional OSX bundle
Diffstat (limited to 'pkg/pyinst')
-rw-r--r-- | pkg/pyinst/app.spec | 9 | ||||
-rw-r--r-- | pkg/pyinst/build.mk | 6 |
2 files changed, 14 insertions, 1 deletions
diff --git a/pkg/pyinst/app.spec b/pkg/pyinst/app.spec index 4c9532be..f693432c 100644 --- a/pkg/pyinst/app.spec +++ b/pkg/pyinst/app.spec @@ -4,7 +4,13 @@ import sys block_cipher = None +IS_MAC = sys.platform.startswith('darwin') + BITMASK_VERSION = open('pkg/next-version').read() +if IS_MAC: + # launchd chokes because more digits are added to the version string, + # so let's skip the patch part of the version. + BITMASK_VERSION = '.'.join(BITMASK_VERSION.split('.')[:-1]) hiddenimports = [ 'appdirs', @@ -17,6 +23,7 @@ hiddenimports = [ 'leap.soledad.common', 'leap.soledad.common.document', 'leap.soledad.common.l2db', + 'leap.soledad.client.events', 'leap.bitmask_js', 'packaging', 'packaging.version', 'packaging.specifiers', 'packaging.requirements'] @@ -75,7 +82,7 @@ coll = COLLECT(exe, upx=True, name='bitmask') -if sys.platform.startswith('darwin'): +if IS_MAC: app = BUNDLE( coll, name=os.path.join( diff --git a/pkg/pyinst/build.mk b/pkg/pyinst/build.mk index 0c540d54..86f7c340 100644 --- a/pkg/pyinst/build.mk +++ b/pkg/pyinst/build.mk @@ -45,6 +45,12 @@ bundle_osx_helpers: bundle_linux: bundle bundle_linux_gpg bundle_linux_vpn bundle_linux_helpers bundle_osx: bundle bundle_osx_helpers + cp $(DIST_VERSION)/lib/_scrypt.so dist/Bitmask.app/Contents/MacOS/ + cp $(DIST_VERSION)/lib/bitmaskd.tac dist/Bitmask.app/Contents/MacOS/ + cp -r $(DIST_VERSION)/lib/leap dist/Bitmask.app/Contents/MacOS/ + cp -r $(DIST_VERSION)/lib/pixelated_www dist/Bitmask.app/Contents/MacOS/ + mv dist/Bitmask.app/Contents/MacOS/bitmask dist/Bitmask.app/Contents/MacOS/bitmask-app + cp pkg/osx/bitmask-wrapper dist/Bitmask.app/Contents/MacOS/bitmask bundle_win: pyinstaller -y pkg/pyinst/app.spec |