Files
aza/AzA march 2026/AZA_PRE_RELEASE_BACKUP_20260612_233039/AZA_Chat.spec

74 lines
1.6 KiB
RPMSpec
Raw Normal View History

2026-06-13 22:47:31 +02:00
# -*- mode: python ; coding: utf-8 -*-
"""PyInstaller one-file Build fuer AZA Chat-only Host (AZA_Chat.exe)."""
from pathlib import Path
from PyInstaller.utils.hooks import collect_submodules
project_root = Path(SPECPATH)
datas = []
for rel in ("_build_info.py", "backend_url.txt", "backend_token.txt"):
p = project_root / rel
if p.is_file():
datas.append((str(p), "."))
assets = project_root / "assets"
if assets.is_dir():
datas.append((str(assets), "assets"))
hiddenimports = list(collect_submodules("webview"))
hiddenimports += [
"aza_empfang_desktop_core",
"aza_empfang_host_poll",
"aza_chat_desktop_host",
"aza_empfang_incoming_popup",
"aza_empfang_shell_surface",
"desktop_update_check",
"aza_updater",
"aza_version",
"_build_info",
"basis14",
]
a = Analysis(
[str(project_root / "aza_chat_app.py")],
pathex=[str(project_root)],
binaries=[],
datas=datas,
hiddenimports=hiddenimports,
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
optimize=0,
)
pyz = PYZ(a.pure)
_icon = project_root / "assets" / "aza_chat_logo8.ico"
_icon_arg = {"icon": str(_icon)} if _icon.is_file() else {}
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
name="AZA_Chat",
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_arg,
)