-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyinstaller-sqledit.spec
More file actions
42 lines (36 loc) · 1.19 KB
/
Copy pathpyinstaller-sqledit.spec
File metadata and controls
42 lines (36 loc) · 1.19 KB
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
# -*- mode: python -*-
# spec file for pyinstaller. Read README.pyinstaller for more info
import os
import sys
ROOT = os.path.dirname(sys.argv[1]) + '/'
#sqlkit = Tree(ROOT + 'sqlkit', prefix='sqlkit')
icon = Tree(ROOT + 'sqlkit/layout', excludes='*.py')
locale = Tree(ROOT + 'sqlkit/locale', prefix='sqlkit/locale')
demo = Tree(ROOT + 'demo', prefix='demo',
excludes= ROOT + 'demo/layout')
a = Analysis([os.path.join(HOMEPATH,'support/_mountzlib.py'),
os.path.join(HOMEPATH,'support/useUnicode.py'),
ROOT + '/bin/sqledit'],
pathex=[os.path.abspath(os.path.dirname(sys.argv[0]))]
)
pyz = PYZ(a.pure )
exe = EXE(pyz,
a.scripts,
exclude_binaries=1,
name=os.path.join('build/pyi.linux2/sqledit', 'sqledit'),
debug=False,
strip=True,
upx=True,
console=1 )
coll = COLLECT( exe,
a.binaries,
a.zipfiles,
a.datas,
demo,
icon,
locale,
#sqlkit,
strip=False,
upx=True,
name=os.path.join('pyinstaller', 'sqledit')
)