summaryrefslogtreecommitdiff
path: root/pkg/pyinst/bitmask.spec
blob: 149093eb0873488a0535a20d45eed3f0717c2aa7 (plain)
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
# -*- mode: python -*-
import sys

block_cipher = None

a = Analysis(['bitmask.py'],
             hiddenimports=[
               'zope.interface', 'zope.proxy',
               'PySide.QtCore', 'PySide.QtGui',
               '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',
                     version='0.9.0rc4',
		     icon='pkg/osx/bitmask.icns',
		     bundle_identifier='bitmask-0.9.0rc4')