-
-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathDLSS_Updater.spec
More file actions
74 lines (66 loc) · 2.29 KB
/
Copy pathDLSS_Updater.spec
File metadata and controls
74 lines (66 loc) · 2.29 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
# -*- mode: python ; coding: utf-8 -*-
# PyInstaller spec file for Windows builds
# Build with: set PYTHON_GIL=0 && pyinstaller DLSS_Updater.spec
# (suppresses msgpack GIL warning during analysis phase)
import os
from PyInstaller.utils.hooks import collect_submodules, collect_data_files
block_cipher = None
# Collect all dlss_updater submodules and data
dlss_updater_imports = collect_submodules('dlss_updater')
dlss_updater_datas = collect_data_files('dlss_updater')
# Collect Flet framework data files (includes flet.exe runtime)
flet_datas = collect_data_files('flet')
flet_desktop_datas = collect_data_files('flet_desktop')
# Note: msgspec is handled by custom hook in pyinstaller_hooks/hook-msgspec.py
# The hook properly collects the free-threaded Python C extension (.cp314t-*.pyd)
a = Analysis(
['main.py'],
pathex=['.'],
binaries=[],
datas=[
('dlss_updater', 'dlss_updater'),
('release_notes.txt', '.'),
('dlss_updater/icons', 'icons'),
] + flet_datas + flet_desktop_datas + dlss_updater_datas,
hiddenimports=[
# Only truly dynamic imports that PyInstaller can't detect:
'winloop', # Conditionally imported in main.py with try/except
'importlib.metadata', # Imported inside function in utils.py
'flet_desktop', # Internal runtime used by flet (never directly imported)
] + dlss_updater_imports,
hookspath=['pyinstaller_hooks'], # Custom hooks directory for msgspec
hooksconfig={},
runtime_hooks=[],
excludes=[
# Linux-only modules to exclude on Windows
'uvloop',
],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False,
optimize=2,
)
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[('X gil=0', None, 'OPTION')], # Force GIL disabled for free-threaded Python 3.14
name='DLSS_Updater',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=False,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon='dlss_updater/icons/dlss_updater.ico',
)