From 1d51bc24ec9afcbb30b05905217bc7aafedca5f1 Mon Sep 17 00:00:00 2001 From: "Kali Kaneko (leap communications)" Date: Tue, 6 Sep 2016 23:06:29 -0400 Subject: [feature] first pyinstaller recipe for the qt5 launcher --- .gitignore | 4 ++++ pkg/pyinst/Makefile | 5 +++++ pkg/pyinst/app.spec | 39 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 pkg/pyinst/Makefile create mode 100644 pkg/pyinst/app.spec diff --git a/.gitignore b/.gitignore index 6357f2a2..94c51d38 100644 --- a/.gitignore +++ b/.gitignore @@ -42,3 +42,7 @@ www/leap/bitmask_www/public/ # vim *.swp + +# PyInstaller +pkg/pyinst/dist/ +pkg/pyinst/build/ diff --git a/pkg/pyinst/Makefile b/pkg/pyinst/Makefile new file mode 100644 index 00000000..72d19ae3 --- /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 00000000..bca9e431 --- /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') -- cgit v1.2.3