Files
aza/AzA march 2026/AZA_KontaktPanel.spec

75 lines
1.8 KiB
RPMSpec
Raw Normal View History

2026-05-20 00:09:28 +02:00
# -*- mode: python ; coding: utf-8 -*-
2026-06-10 22:55:03 +02:00
"""PyInstaller one-file Build: AzA Kontakt-Panel (Phase 1).
2026-05-20 00:09:28 +02:00
2026-06-10 22:55:03 +02:00
Duenner Starter ``aza_kontakt_panel.py`` startet die bestehende Web-Shell
(``aza_empfang_webview``) im Modus ``kontakt_panel`` (Fenstertitel "AzA Kontakte",
eigene AUMID, eigener WebView2-Storage). Keine eigene Chatlogik.
2026-05-20 00:09:28 +02:00
2026-06-10 22:55:03 +02:00
Icon: ``assets/aza_kontakt_panel.ico`` (Pfoten-Logo aus ``assets/Logo3.png``).
2026-05-20 00:09:28 +02:00
"""
from pathlib import Path
from PyInstaller.utils.hooks import collect_submodules
project_root = Path(SPECPATH)
datas = []
_build_info = project_root / "_build_info.py"
if _build_info.is_file():
datas.append((str(_build_info), "."))
2026-06-10 22:55:03 +02:00
_kp_ico = project_root / "assets" / "aza_kontakt_panel.ico"
if _kp_ico.is_file():
datas.append((str(_kp_ico), "."))
2026-05-20 00:09:28 +02:00
hiddenimports = list(collect_submodules("webview")) + [
2026-06-10 22:55:03 +02:00
"aza_empfang_webview",
2026-05-20 00:09:28 +02:00
"aza_empfang_app",
"aza_empfang_region_snapshot",
"PIL.ImageGrab",
"PIL.Image",
]
a = Analysis(
2026-06-10 22:55:03 +02:00
[str(project_root / "aza_kontakt_panel.py")],
2026-05-20 00:09:28 +02:00
pathex=[str(project_root)],
binaries=[],
datas=datas,
hiddenimports=hiddenimports,
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
optimize=0,
)
pyz = PYZ(a.pure)
2026-06-10 22:55:03 +02:00
_kp_icon = project_root / "assets" / "aza_kontakt_panel.ico"
2026-05-20 00:09:28 +02:00
_icon_arg = {}
2026-06-10 22:55:03 +02:00
if _kp_icon.is_file():
_icon_arg["icon"] = str(_kp_icon)
2026-05-20 00:09:28 +02:00
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
2026-06-10 22:55:03 +02:00
name="AZA_KontaktPanel",
2026-05-20 00:09:28 +02:00
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,
)