-
Notifications
You must be signed in to change notification settings - Fork 15
/
pyinstaller-package.spec
99 lines (88 loc) · 2.47 KB
/
pyinstaller-package.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# -*- mode: python ; coding: utf-8 -*-
from pathlib import Path
import importlib
def module_path(module_name):
module = importlib.import_module(module_name)
return Path(module.__file__).resolve().parent
block_cipher = None
added_files = [
(str(module_path("sqlalchemy")), "sqlalchemy/"),
(str(module_path("plotly")), "plotly/"),
(str(module_path("dash")), "dash/"),
(str(Path("README.md")), "./"),
(str(Path("stellarisdashboard/dashboard_app/assets")), "stellarisdashboard/dashboard_app/assets/"),
(str(Path("stellarisdashboard/dashboard_app/templates")), "stellarisdashboard/dashboard_app/templates/"),
]
a_main = Analysis(
[str(Path('stellarisdashboard/__main__.py'))],
pathex=[],
binaries=[],
datas=added_files,
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False
)
a_parse_saves = Analysis(
[str(Path('stellarisdashboard/parse_existing_saves.py'))],
pathex=[],
binaries=[],
datas=added_files,
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False
)
MERGE(
(a_main, 'dashboard', 'dashboard'),
(a_parse_saves, 'parse-saves', 'parse-saves')
)
pyz_main = PYZ(a_main.pure, a_main.zipped_data,
cipher=block_cipher)
exe_main = EXE(pyz_main,
a_main.scripts,
[],
exclude_binaries=True,
name='dashboard',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=True)
pyz_parse_saves = PYZ(
a_parse_saves.pure,
a_parse_saves.zipped_data,
cipher=block_cipher
)
parse_saves_exe = EXE(
pyz_parse_saves,
a_parse_saves.scripts,
[],
exclude_binaries=True,
name='parse_saves',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=True
)
coll = COLLECT(exe_main,
a_main.binaries,
a_main.zipfiles,
a_main.datas,
parse_saves_exe,
a_parse_saves.binaries,
a_parse_saves.zipfiles,
a_parse_saves.datas,
strip=False,
upx=True,
upx_exclude=[],
name='stellarisdashboard-build')