# -*- mode: python ; coding: utf-8 -*- """PyInstaller one-file Build: AzA Kontakt-Panel (Phase 1). 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. Icon: ``assets/aza_kontakt_panel.ico`` (Pfoten-Logo aus ``assets/Logo3.png``). """ 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), ".")) _kp_ico = project_root / "assets" / "aza_kontakt_panel.ico" if _kp_ico.is_file(): datas.append((str(_kp_ico), ".")) hiddenimports = list(collect_submodules("webview")) + [ "aza_empfang_webview", "aza_empfang_app", "aza_empfang_region_snapshot", "PIL.ImageGrab", "PIL.Image", ] a = Analysis( [str(project_root / "aza_kontakt_panel.py")], pathex=[str(project_root)], binaries=[], datas=datas, hiddenimports=hiddenimports, hookspath=[], hooksconfig={}, runtime_hooks=[], excludes=[], noarchive=False, optimize=0, ) pyz = PYZ(a.pure) _kp_icon = project_root / "assets" / "aza_kontakt_panel.ico" _icon_arg = {} if _kp_icon.is_file(): _icon_arg["icon"] = str(_kp_icon) exe = EXE( pyz, a.scripts, a.binaries, a.datas, [], name="AZA_KontaktPanel", 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, )