summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2016-03-08 00:58:45 -0400
committerKali Kaneko <kali@leap.se>2016-04-19 09:59:36 -0400
commit59009db169e9e75ec6271601d38cd0fba2bd8806 (patch)
tree66b81954d443a5a5e6fc16b258a201b607602e64
parentf4503842fdc288fb6336211099ad0a8d01165df3 (diff)
[feat] multi-binary specs for cli
l---------pkg/pyinst/bitmask_cli1
-rw-r--r--pkg/pyinst/bitmask_cli.spec32
-rw-r--r--pkg/pyinst/multi.spec54
3 files changed, 87 insertions, 0 deletions
diff --git a/pkg/pyinst/bitmask_cli b/pkg/pyinst/bitmask_cli
new file mode 120000
index 00000000..7842f03b
--- /dev/null
+++ b/pkg/pyinst/bitmask_cli
@@ -0,0 +1 @@
+../../src/leap/bitmask/cli/bitmask_cli.py \ No newline at end of file
diff --git a/pkg/pyinst/bitmask_cli.spec b/pkg/pyinst/bitmask_cli.spec
new file mode 100644
index 00000000..5157e179
--- /dev/null
+++ b/pkg/pyinst/bitmask_cli.spec
@@ -0,0 +1,32 @@
+# -*- mode: python -*-
+
+block_cipher = None
+
+
+a = Analysis(['bitmask_cli'],
+ pathex=['/home/kali/leap/bitmask_client/pkg/pyinst'],
+ binaries=None,
+ datas=None,
+ hiddenimports=[],
+ 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_cli',
+ debug=False,
+ strip=False,
+ upx=True,
+ console=True )
+coll = COLLECT(exe,
+ a.binaries,
+ a.zipfiles,
+ a.datas,
+ strip=False,
+ upx=True,
+ name='bitmask_cli')
diff --git a/pkg/pyinst/multi.spec b/pkg/pyinst/multi.spec
new file mode 100644
index 00000000..2bb9d248
--- /dev/null
+++ b/pkg/pyinst/multi.spec
@@ -0,0 +1,54 @@
+
+# -*- mode: python -*-
+
+block_cipher = None
+
+
+gui_a = Analysis(['bitmask.py'],
+ hiddenimports=[
+ 'zope.interface', 'zope.proxy',
+ 'PySide.QtCore', 'PySide.QtGui'],
+ hookspath=None,
+ runtime_hooks=None,
+ excludes=None,
+ cipher=block_cipher)
+cli_a = Analysis(['bitmask_cli'],
+ pathex=['/home/kali/leap/bitmask_client/pkg/pyinst'],
+ binaries=None,
+ datas=None,
+ hiddenimports=[
+ 'zope.interface', 'zope.proxy'],
+ hookspath=[],
+ runtime_hooks=[],
+ excludes=[],
+ win_no_prefer_redirects=False,
+ win_private_assemblies=False,
+ cipher=block_cipher)
+
+MERGE( (gui_a, 'bitmask', 'bitmask'),
+ (cli_a, 'bitmask_cli', 'bitmask'))
+
+gui_pyz = PYZ(gui_a.pure, gui_a.zipped_data, cipher=block_cipher)
+gui_exe = EXE(gui_pyz,
+ gui_a.scripts,
+ exclude_binaries=True,
+ name='bitmask', debug=False, strip=False,
+ upx=True, console=False )
+
+cli_pyz = PYZ(cli_a.pure, cli_a.zipped_data, cipher=block_cipher)
+cli_exe = EXE(cli_pyz,
+ cli_a.scripts,
+ exclude_binaries=True,
+ name='bitmask_cli', debug=False, strip=False,
+ upx=True, console=True)
+
+gui_coll = COLLECT(gui_exe,
+ gui_a.binaries,
+ gui_a.zipfiles,
+ gui_a.datas,
+ strip=False, upx=True, name='bitmask')
+cli_coll = COLLECT(cli_exe,
+ cli_a.binaries,
+ cli_a.zipfiles,
+ cli_a.datas,
+ strip=False, upx=True, name='bitmask_cli')