-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.spec
83 lines (77 loc) · 2.19 KB
/
demo.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# -*- mode: python ; coding: utf-8 -*-
from PyInstaller.utils.hooks import collect_data_files
from PyInstaller.utils.hooks import collect_submodules
hiddenimports = collect_submodules('matplotlib')
datas = [
('GUI/qss/banner_widget.qss', 'GUI/qss'),
('GUI/qss/displayA.qss', 'GUI/qss'),
('GUI/qss/displayB.qss', 'GUI/qss'),
('GUI/qss/get_start.qss', 'GUI/qss'),
('GUI/qss/link_card.qss', 'GUI/qss'),
('GUI/qss/messagebox.qss', 'GUI/qss'),
('GUI/qss/obj_table.qss', 'GUI/qss'),
('GUI/qss/op_widget.qss', 'GUI/qss'),
('GUI/qss/open_project.qss', 'GUI/qss'),
('GUI/qss/optimization.qss', 'GUI/qss'),
('GUI/qss/para_setting.qss', 'GUI/qss'),
('GUI/qss/problem_define.qss', 'GUI/qss'),
('GUI/qss/para_table.qss', 'GUI/qss'),
('GUI/qss/sa_widget.qss', 'GUI/qss'),
('GUI/qss/sensitivity_analysis.qss', 'GUI/qss'),
('GUI/qss/table_widget.qss', 'GUI/qss'),
('GUI/qss/tree_list.qss', 'GUI/qss'),
('GUI/qss/validation.qss', 'GUI/qss'),
('GUI/picture/header.png', 'GUI/picture'),
('GUI/picture/header1.png', 'GUI/picture'),
('GUI/picture/header2.png', 'GUI/picture'),
('GUI/picture/header3.png', 'GUI/picture'),
('GUI/picture/header4.png', 'GUI/picture'),
('GUI/data/parameter_list.txt', 'GUI/data'),
('GUI/picture/icon.png', 'GUI/picture'),
('GUI/picture/title_icon.png', 'GUI/picture'),
('GUI/data/SWAT_paras_files.csv', 'GUI/data')
]
a = Analysis(
['app.py'],
pathex=[],
binaries=[],
datas=datas,
hiddenimports=hiddenimports,
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
optimize=0,
)
pyz = PYZ(a.pure)
exe = EXE(
pyz,
a.scripts,
[],
onefile=True,
exclude_binaries=True,
name='demo',
contents_directory='.',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=False,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon='./GUI/picture/icon.png',
)
coll = COLLECT(
exe,
a.binaries,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='demo',
distpath='bin'
)