-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpydeck.spec
More file actions
executable file
·76 lines (70 loc) · 2.08 KB
/
Copy pathpydeck.spec
File metadata and controls
executable file
·76 lines (70 loc) · 2.08 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
# PyInstaller spec for pydeck.
# Build: pyinstaller --noconfirm pydeck.spec
# Output: dist/pydeck.exe
from PyInstaller.utils.hooks import collect_all
datas = [("pydeck/static", "pydeck/static")]
binaries = []
hiddenimports = [
# uvicorn picks loops/protocols at runtime via importlib — PyInstaller
# can't see those without help.
"uvicorn.logging",
"uvicorn.loops",
"uvicorn.loops.auto",
"uvicorn.protocols",
"uvicorn.protocols.http",
"uvicorn.protocols.http.auto",
"uvicorn.protocols.websockets",
"uvicorn.protocols.websockets.auto",
"uvicorn.lifespan",
"uvicorn.lifespan.on",
]
# These packages use dynamic imports or generate COM bindings on the fly.
# Pull them in wholesale rather than guessing.
for pkg in ("pycaw", "comtypes", "obsws_python", "websockets"):
d, b, h = collect_all(pkg)
datas += d
binaries += b
hiddenimports += h
a = Analysis(
# Entry must live *outside* the package — PyInstaller treats this file as
# a top-level script, and running pydeck/__main__.py that way would break
# the package's relative imports.
["pydeck_run.py"],
pathex=[],
binaries=binaries,
datas=datas,
hiddenimports=hiddenimports,
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
)
pyz = PYZ(a.pure)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
name="pydeck",
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=False,
upx_exclude=[],
runtime_tmpdir=None,
# Windowed mode — the GUI is the user-facing surface. Logs go to the
# log view inside the window AND to %LOCALAPPDATA%/pydeck/pydeck.log so
# there's always a way to see what happened on a crash.
console=False,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
# Embed a UAC manifest so the exe requests admin on launch. Display
# actions (MultiMonitorTool) and hotkey injection into elevated apps
# require this.
uac_admin=True,
)