summaryrefslogtreecommitdiff
path: root/pkg/pyinst
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2016-09-06 23:06:29 -0400
committerKali Kaneko (leap communications) <kali@leap.se>2016-09-06 23:06:29 -0400
commit1d51bc24ec9afcbb30b05905217bc7aafedca5f1 (patch)
tree456891ed9a545e19256316ed184fc71c6fd68b99 /pkg/pyinst
parent5a3fb4eb5a24e250a75dac4a2a39ce5632a175b6 (diff)
[feature] first pyinstaller recipe for the qt5 launcher
Diffstat (limited to 'pkg/pyinst')
-rw-r--r--pkg/pyinst/Makefile5
-rw-r--r--pkg/pyinst/app.spec39
2 files changed, 44 insertions, 0 deletions
diff --git a/pkg/pyinst/Makefile b/pkg/pyinst/Makefile
new file mode 100644
index 0000000..72d19ae
--- /dev/null
+++ b/pkg/pyinst/Makefile
@@ -0,0 +1,5 @@
+clean:
+ rm -rf dist build
+
+build: clean
+ pyinstaller -y app.spec
diff --git a/pkg/pyinst/app.spec b/pkg/pyinst/app.spec
new file mode 100644
index 0000000..bca9e43
--- /dev/null
+++ b/pkg/pyinst/app.spec
@@ -0,0 +1,39 @@
+# -*- mode: python -*-
+
+block_cipher = None
+
+
+a = Analysis(['../../src/leap/bitmask/gui/app.py'],
+ pathex=[
+ '/usr/lib/python2.7/dist-packages/'],
+ binaries=None,
+ datas=None,
+ hiddenimports=[
+ 'zope.interface', 'zope.proxy',
+ 'PyQt5.QtCore', 'PyQt5.QtGui', 'PyQt5.QtWebKit',
+ 'pysqlcipher', 'service_identity',
+ 'leap.common', 'leap.bitmask'
+ ],
+ hookspath=[],
+ runtime_hooks=[],
+ excludes=[],
+ win_no_prefer_redirects=False,
+ win_private_assemblies=False,
+ cipher=block_cipher)
+pyz = PYZ(a.pure, a.zipped_data,
+ cipher=block_cipher)
+exe = EXE(pyz,
+ a.scripts,
+ exclude_binaries=True,
+ name='bitmask',
+ debug=False,
+ strip=False,
+ upx=True,
+ console=True )
+coll = COLLECT(exe,
+ a.binaries,
+ a.zipfiles,
+ a.datas,
+ strip=False,
+ upx=True,
+ name='bitmask')