-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathLauncherBootstrap.spec
More file actions
51 lines (44 loc) · 1.21 KB
/
Copy pathLauncherBootstrap.spec
File metadata and controls
51 lines (44 loc) · 1.21 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
# -*- mode: python ; coding: utf-8 -*-
import os
def _resolve_root_dir():
spec_path = globals().get("__file__") or globals().get("SPEC")
if spec_path:
return os.path.dirname(os.path.abspath(spec_path))
fallback_spec_path = os.path.abspath(os.path.join(os.getcwd(), "LauncherBootstrap.spec"))
return os.path.dirname(fallback_spec_path)
ROOT_DIR = _resolve_root_dir()
BOOTSTRAP_SCRIPT = os.path.join(ROOT_DIR, "launcher_bootstrap.py")
HOOKS_DIR = os.path.join(ROOT_DIR, "hooks")
WINDOWS_ICON_PATH = os.path.join(ROOT_DIR, "assets", "launcher_app_icon.ico")
a = Analysis(
[BOOTSTRAP_SCRIPT],
pathex=[ROOT_DIR],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[HOOKS_DIR],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
optimize=0,
)
pyz = PYZ(a.pure)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
name="LauncherBootstrap",
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=False,
disable_windowed_traceback=False,
argv_emulation=False,
icon=WINDOWS_ICON_PATH if os.path.isfile(WINDOWS_ICON_PATH) else None,
)