-
Notifications
You must be signed in to change notification settings - Fork 9
/
ui-exe.spec
59 lines (51 loc) · 1.63 KB
/
ui-exe.spec
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
58
## -*- mode: python -*-
import sys
sys.setrecursionlimit(1500)
block_cipher = None
a = Analysis(['ui.py'],
pathex=[],
binaries=[],
datas=[('./resipy/exe/R2.exe','./resipy/exe'),
('./resipy/exe/gmsh.exe','./resipy/exe'),
('./resipy/exe/cR2.exe', './resipy/exe'),
('./resipy/exe/R3t.exe', './resipy/exe'),
('./resipy/exe/cR3t.exe', './resipy/exe'),
('./resipy/test/testTimelapse/*', './resipy/test/testTimelapse'),
('./logo.png', '.'),
('./logo.ico', '.')],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher)
def extra_datas(mydir):
def rec_glob(p, files):
import os
import glob
for d in glob.glob(p):
if os.path.isfile(d):
files.append(d)
rec_glob("%s/*" % d, files)
files = []
rec_glob("%s/*" % mydir, files)
extra_datas = []
for f in files:
extra_datas.append((f, os.path.dirname(os.path.join('resipy', 'invdir',f))))
return extra_datas
datas += extra_datas('examples')
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='ResIPy',
debug=True,
strip=False,
upx=True,
runtime_tmpdir=None,
console=False,
icon='logo.ico')