-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathbuild.spec
More file actions
58 lines (53 loc) · 1.25 KB
/
Copy pathbuild.spec
File metadata and controls
58 lines (53 loc) · 1.25 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
# -*- mode: python ; coding: utf-8 -*-
# PyInstaller spec for MasterWeb – Linux amd64 single-file build
# Usage: pyinstaller build.spec
# Output: dist/MasterDnsWeb
from pathlib import Path
block_cipher = None
backend_dir = Path("backend")
static_dir = backend_dir / "static"
datas = []
if static_dir.exists():
datas.append((str(static_dir), "static"))
a = Analysis(
[str(backend_dir / "main.py")],
pathex=[str(backend_dir)],
binaries=[],
datas=datas,
hiddenimports=[
"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",
"jose",
"jose.jwt",
"dotenv",
],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
cipher=block_cipher,
)
pyz = PYZ(a.pure, cipher=block_cipher)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
name="MasterDnsWeb",
debug=False,
bootloader_ignore_signals=False,
strip=True,
upx=True,
console=True,
target_arch="x86_64",
)