forked from AntaresSimulatorTeam/AntaREST
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAntaresWebWin.spec
89 lines (82 loc) · 3.22 KB
/
AntaresWebWin.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
# -*- mode: python ; coding: utf-8 -*-
from pathlib import Path
block_cipher = None
# We need to analyze all alembic files to be sure the migration phase works fine
migrations_dir = Path('alembic/versions')
migration_files = [str(f) for f in migrations_dir.iterdir() if f.is_file() and f.suffix == '.py']
antares_web_server_a = Analysis(['antarest/gui.py', 'alembic/env.py'] + migration_files,
pathex=[],
binaries=[('./alembic.ini', './alembic.ini')],
datas=[('./resources', './resources'), ('./alembic', './alembic')],
hiddenimports=[
'cmath',
'antarest.dbmodel',
'plyer.platforms.win',
'plyer.platforms.win.notification',
'pythonjsonlogger.jsonlogger',
],
hookspath=['extra-hooks'],
hooksconfig={},
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
antares_web_server_pyz = PYZ(antares_web_server_a.pure, antares_web_server_a.zipped_data,
cipher=block_cipher)
antares_web_server_exe = EXE(antares_web_server_pyz,
antares_web_server_a.scripts,
[],
exclude_binaries=True,
name='AntaresWebServer',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=False,
disable_windowed_traceback=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None , icon='resources/webapp/favicon.ico')
antares_tool_a = Analysis(['antarest/tools/cli.py'],
pathex=[],
binaries=[],
datas=[('./resources', './resources')],
hiddenimports=['cmath', 'sqlalchemy.sql.default_comparator', 'sqlalchemy.ext.baked'],
hookspath=['extra-hooks'],
hooksconfig={},
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
antares_tool_pyz = PYZ(antares_tool_a.pure, antares_tool_a.zipped_data,
cipher=block_cipher)
antares_tool_exe = EXE(antares_tool_pyz,
antares_tool_a.scripts,
[],
exclude_binaries=True,
name='AntaresTool',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=True,
disable_windowed_traceback=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None )
coll = COLLECT(antares_web_server_exe,
antares_web_server_a.binaries,
antares_web_server_a.zipfiles,
antares_web_server_a.datas,
antares_tool_exe,
antares_tool_a.binaries,
antares_tool_a.zipfiles,
antares_tool_a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='AntaresWeb')