Files
aza/AzA march 2026/AZA_Empfang.spec

59 lines
1.2 KiB
RPMSpec
Raw Normal View History

2026-04-19 20:41:37 +02:00
# -*- mode: python ; coding: utf-8 -*-
2026-05-06 22:43:22 +02:00
"""PyInstaller one-file Build fuer AZA Empfang (pywebview)."""
2026-04-19 20:41:37 +02:00
2026-05-06 22:43:22 +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), "."))
hiddenimports = list(collect_submodules("webview"))
2026-04-19 20:41:37 +02:00
a = Analysis(
2026-05-06 22:43:22 +02:00
[str(project_root / "aza_empfang_app.py")],
pathex=[str(project_root)],
2026-04-19 20:41:37 +02:00
binaries=[],
2026-05-06 22:43:22 +02:00
datas=datas,
hiddenimports=hiddenimports,
2026-04-19 20:41:37 +02:00
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
optimize=0,
)
2026-05-06 22:43:22 +02:00
2026-04-19 20:41:37 +02:00
pyz = PYZ(a.pure)
2026-05-06 22:43:22 +02:00
_logo = project_root / "logo.ico"
_icon_arg = {}
if _logo.is_file():
_icon_arg["icon"] = str(_logo)
2026-04-19 20:41:37 +02:00
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
2026-05-06 22:43:22 +02:00
name="AZA_Empfang",
2026-04-19 20:41:37 +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,
2026-05-06 22:43:22 +02:00
**_icon_arg,
2026-04-19 20:41:37 +02:00
)