summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2015-06-22 19:15:22 -0400
committerIvan Alejandro <ivanalejandro0@gmail.com>2015-07-31 16:48:21 -0300
commitc68754c16629a6b45c7feba57f14d51a1617c4a2 (patch)
tree236602b61b5584dd313cb204b74ed179b05bbd5c
parentf66ad4ce4ea1958e9cae9cd74727c3a93d8c369a (diff)
[feat] initial working bundle with pyinstaller
linux only, at the moment, but it's a good start :)
-rw-r--r--Makefile2
l---------pkg/pyinst/bitmask.py1
-rw-r--r--pkg/pyinst/bitmask.spec59
3 files changed, 62 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b2fb5051..d0d68f2d 100644
--- a/Makefile
+++ b/Makefile
@@ -135,6 +135,8 @@ sumo_tarball:
python setup.py sdist --sumo
git checkout -- src/leap/__init__.py
rm -rf src/leap/soledad
+pyinst:
+ pyinstaller pkg/pyinst/bitmask.spec
clean :
$(RM) $(COMPILED_UI) $(COMPILED_RESOURCES) $(COMPILED_UI:.py=.pyc) $(COMPILED_RESOURCES:.py=.pyc)
diff --git a/pkg/pyinst/bitmask.py b/pkg/pyinst/bitmask.py
new file mode 120000
index 00000000..3da791e6
--- /dev/null
+++ b/pkg/pyinst/bitmask.py
@@ -0,0 +1 @@
+../../src/leap/bitmask/app.py \ No newline at end of file
diff --git a/pkg/pyinst/bitmask.spec b/pkg/pyinst/bitmask.spec
new file mode 100644
index 00000000..efdbf167
--- /dev/null
+++ b/pkg/pyinst/bitmask.spec
@@ -0,0 +1,59 @@
+# -*- mode: python -*-
+a = Analysis(['pkg/pyinst/bitmask.py'],
+ pathex=['/home/kali/Virtualenvs/leap-pyinst/lib/python2.7/site-packages/zope', '/home/kali/Virtualenvs/leap-pyinst/lib/python2.7/site-packages/zope/interface', '/home/kali/Virtualenvs/leap-pyinst/lib/python2.7/site-packages/zope/proxy', '/home/kali/leap/bitmask_client/src/leap/bitmask'],
+ hiddenimports=[
+ 'zope.interface', 'zope.proxy',
+ 'leap.common',
+ 'leap.common.config',
+ 'PySide.QtCore', 'PySide.QtGui',
+ # not needed with latest develop pyinstaller
+ 'cryptography.hazmat.bindings.openssl',
+ 'cryptography.hazmat.bindings.openssl.aes',
+ 'cryptography.hazmat.bindings.openssl.asn1',
+ 'cryptography.hazmat.bindings.openssl.bignum',
+ 'cryptography.hazmat.bindings.openssl.bio',
+ 'cryptography.hazmat.bindings.openssl.cmac',
+ 'cryptography.hazmat.bindings.openssl.cms',
+ 'cryptography.hazmat.bindings.openssl.conf',
+ 'cryptography.hazmat.bindings.openssl.crypto',
+ 'cryptography.hazmat.bindings.openssl.dh',
+ 'cryptography.hazmat.bindings.openssl.dsa',
+ 'cryptography.hazmat.bindings.openssl.ec',
+ 'cryptography.hazmat.bindings.openssl.ecdh',
+ 'cryptography.hazmat.bindings.openssl.ecdsa',
+ 'cryptography.hazmat.bindings.openssl.engine',
+ 'cryptography.hazmat.bindings.openssl.err',
+ 'cryptography.hazmat.bindings.openssl.evp',
+ 'cryptography.hazmat.bindings.openssl.hmac',
+ 'cryptography.hazmat.bindings.openssl.nid',
+ 'cryptography.hazmat.bindings.openssl.objects',
+ 'cryptography.hazmat.bindings.openssl.opensslv',
+ 'cryptography.hazmat.bindings.openssl.osrandom_engine',
+ 'cryptography.hazmat.bindings.openssl.pem',
+ 'cryptography.hazmat.bindings.openssl.pkcs12',
+ 'cryptography.hazmat.bindings.openssl.pkcs7',
+ 'cryptography.hazmat.bindings.openssl.rand',
+ 'cryptography.hazmat.bindings.openssl.rsa',
+ 'cryptography.hazmat.bindings.openssl.ssl',
+ 'cryptography.hazmat.bindings.openssl.x509name',
+ 'cryptography.hazmat.bindings.openssl.x509',
+ 'cryptography.hazmat.bindings.openssl.x509v3',
+ 'cryptography.hazmat.bindings.openssl.x509_vfy'],
+ hookspath=None,
+ runtime_hooks=None)
+pyz = PYZ(a.pure)
+exe = EXE(pyz,
+ a.scripts,
+ exclude_binaries=True,
+ name='bitmask',
+ debug=False,
+ strip=None,
+ upx=True,
+ console=True )
+coll = COLLECT(exe,
+ a.binaries,
+ a.zipfiles,
+ a.datas,
+ strip=None,
+ upx=True,
+ name='bitmask')