update
This commit is contained in:
67
AzA march 2026/AZA_EmpfangShell.spec
Normal file
67
AzA march 2026/AZA_EmpfangShell.spec
Normal file
@@ -0,0 +1,67 @@
|
||||
# -*- mode: python ; coding: utf-8 -*-
|
||||
"""PyInstaller one-file Build: gleiche Web-Shell wie ``python aza_empfang_webview.py URL``.
|
||||
|
||||
Wird vom AzA-Hauptfenster (basis14) bevorzugt gestartet, damit Windows in der Taskleiste
|
||||
die eingebettete Icon-Ressource der EXE zeigt statt ``python.exe``.
|
||||
|
||||
Die eigenständige Hülle ``AZA_Empfang.exe`` (``aza_empfang_app.py``) bleibt unverändert.
|
||||
"""
|
||||
|
||||
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), "."))
|
||||
_logo_ico = project_root / "logo.ico"
|
||||
if _logo_ico.is_file():
|
||||
datas.append((str(_logo_ico), "."))
|
||||
|
||||
hiddenimports = list(collect_submodules("webview")) + ["aza_empfang_app"]
|
||||
|
||||
a = Analysis(
|
||||
[str(project_root / "aza_empfang_webview.py")],
|
||||
pathex=[str(project_root)],
|
||||
binaries=[],
|
||||
datas=datas,
|
||||
hiddenimports=hiddenimports,
|
||||
hookspath=[],
|
||||
hooksconfig={},
|
||||
runtime_hooks=[],
|
||||
excludes=[],
|
||||
noarchive=False,
|
||||
optimize=0,
|
||||
)
|
||||
|
||||
pyz = PYZ(a.pure)
|
||||
|
||||
_logo = project_root / "logo.ico"
|
||||
_icon_arg = {}
|
||||
if _logo.is_file():
|
||||
_icon_arg["icon"] = str(_logo)
|
||||
|
||||
exe = EXE(
|
||||
pyz,
|
||||
a.scripts,
|
||||
a.binaries,
|
||||
a.datas,
|
||||
[],
|
||||
name="AZA_EmpfangShell",
|
||||
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,
|
||||
)
|
||||
Reference in New Issue
Block a user