summaryrefslogtreecommitdiff
path: root/pkg/osx/leap-client.spec
blob: 6549646946d60eeaeed6dfba28c211ae23743518 (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
# -*- mode: python -*-
a = Analysis(['../../src/leap/app.py'], 
             pathex=[
		'../../src/leap',
		'/Users/kaliy/leap/leap-client-testbuild/src/leap-client/pkg/osx'],
             hiddenimports=['atexit'],
             hookspath=None)
pyz = PYZ(a.pure)
exe = EXE(pyz,
          a.scripts,
          exclude_binaries=1,
          name=os.path.join('build/pyi.darwin/leap-client', 'app'),
          debug=False,
          strip=True,
          upx=True,
          console=False)
coll = COLLECT(exe,
               a.binaries +
	       # this will easitly break if we setup the venv
	       # somewhere else. FIXME
	       [('cacert.pem', '../../../../lib/python2.6/site-packages/requests/cacert.pem', 'DATA'),
	       # XXX osx only
	        ('libgnutls.26.dylib', '/opt/local/lib/libgnutls.26.dylib', 'BINARY'),
	        ('libgnutls-extra.26.dylib', '/opt/local/lib/libgnutls-extra.26.dylib', 'BINARY'),
		],
               a.zipfiles,
               a.datas,
               strip=True,
               upx=True,
               name=os.path.join('dist', 'app'))
app = BUNDLE(coll,
             name=os.path.join('dist', 'leap-client.app'))

import sys
if sys.platform.startswith("darwin"):
    app = BUNDLE(coll,
		 name=os.path.join('dist', 'LEAP Client.app'),
                 appname='LEAP Client',
                 version=1)