-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathspirescope.spec
More file actions
117 lines (109 loc) · 3.13 KB
/
spirescope.spec
File metadata and controls
117 lines (109 loc) · 3.13 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
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# -*- mode: python ; coding: utf-8 -*-
"""PyInstaller spec file for Spirescope."""
from PyInstaller.utils.win32.versioninfo import (
FixedFileInfo,
StringFileInfo,
StringStruct,
StringTable,
VarFileInfo,
VarStruct,
VSVersionInfo,
)
VERSION = "2.9.2"
VERSION_TUPLE = tuple(int(part) for part in VERSION.split(".")) + (0,)
version_info = VSVersionInfo(
ffi=FixedFileInfo(
filevers=VERSION_TUPLE,
prodvers=VERSION_TUPLE,
mask=0x3F,
flags=0x0,
OS=0x40004,
fileType=0x1,
subtype=0x0,
date=(0, 0),
),
kids=[
StringFileInfo([
StringTable("040904B0", [
StringStruct("CompanyName", "Thomas Albrecht"),
StringStruct("FileDescription", "Spirescope - Slay the Spire 2 companion dashboard"),
StringStruct("FileVersion", VERSION),
StringStruct("InternalName", "Spirescope"),
StringStruct("LegalCopyright", "Copyright (c) Thomas Albrecht"),
StringStruct("OriginalFilename", "Spirescope.exe"),
StringStruct("ProductName", "Spirescope"),
StringStruct("ProductVersion", VERSION),
]),
]),
VarFileInfo([VarStruct("Translation", [1033, 1200])]),
],
)
a = Analysis(
['sts2/__main__.py'],
pathex=[],
binaries=[],
datas=[
('sts2/data', 'sts2/data'),
('sts2/templates', 'sts2/templates'),
('sts2/static', 'sts2/static'),
],
hiddenimports=[
'uvicorn.logging',
'uvicorn.loops',
'uvicorn.loops.auto',
'uvicorn.loops.asyncio',
'uvicorn.protocols',
'uvicorn.protocols.http',
'uvicorn.protocols.http.auto',
'uvicorn.protocols.http.h11_impl',
'uvicorn.protocols.http.httptools_impl',
'uvicorn.protocols.websockets',
'uvicorn.protocols.websockets.auto',
'uvicorn.protocols.websockets.websockets_impl',
'uvicorn.protocols.websockets.wsproto_impl',
'uvicorn.lifespan',
'uvicorn.lifespan.on',
'uvicorn.lifespan.off',
'multipart',
'multipart.multipart',
'python_multipart',
'python_multipart.multipart',
],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[
'numpy', 'pandas', 'scipy', 'matplotlib', 'IPython', 'pygments',
'PIL', 'cv2', 'sklearn', 'torch', 'tensorflow', 'pytest',
'setuptools', 'pip', 'wheel', 'pkg_resources',
'tkinter', 'unittest', 'doctest', 'xmlrpc', 'ftplib',
'sphinx', 'babel', 'docutils', 'lxml', 'cryptography', 'zmq',
'myst_parser', 'rich', 'Cython', 'psutil', 'dateutil',
],
noarchive=False,
)
pyz = PYZ(a.pure, a.zipped_data)
exe = EXE(
pyz,
a.scripts,
[],
exclude_binaries=True,
name='Spirescope',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=False,
console=True,
icon='sts2/static/favicon.ico',
version=version_info,
)
coll = COLLECT(
exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=False,
upx_exclude=[],
name='Spirescope',
)