1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# -*- mode: python -*-
import sys
block_cipher = None
# TODO remove QtWebKit for bundles that don't ship pixelated???
a = Analysis(['bitmask.py'],
hiddenimports=[
'zope.interface', 'zope.proxy',
'PySide.QtCore', 'PySide.QtGui', 'PySide.QtWebKit',
'pysqlcipher', 'service_identity',
'leap.common', 'leap.bitmask'
],
binaries=None,
datas=None,
hookspath=None,
runtime_hooks=None,
excludes=None,
win_no_prefer_redirects=None,
win_private_assemblies=None,
cipher=block_cipher)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
# Binary files you need to include in the form of:
# (<destination>, <source>, '<TYPE>')
# Data files you want to include, in the form of:
# (<destination>, <source>, '<TYPE>')
data = [
('qt.conf', 'qt.conf', 'DATA')
]
exe = EXE(pyz,
a.scripts,
exclude_binaries=True,
name='bitmask',
debug=True,
strip=None,
upx=True,
console=False,
icon='../../data/images/mask-icon.ico')
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=None,
upx=True,
name='bitmask')
if sys.platform.startswith("darwin"):
app = BUNDLE(coll,
name=os.path.join(
'dist', 'Bitmask.app'),
appname='Bitmask',
# TODO get this from ../next-version.txt
version='0.9.0.rc1',
icon='pkg/osx/bitmask.icns',
bundle_identifier='bitmask-0.9.0alpha7')
|