update
This commit is contained in:
61
AzA march 2026 - Kopie (27)/AZA_Empfang.spec
Normal file
61
AzA march 2026 - Kopie (27)/AZA_Empfang.spec
Normal file
@@ -0,0 +1,61 @@
|
||||
# -*- mode: python ; coding: utf-8 -*-
|
||||
"""PyInstaller one-file Build fuer AZA Empfang (pywebview)."""
|
||||
|
||||
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"))
|
||||
|
||||
a = Analysis(
|
||||
[str(project_root / "aza_empfang_app.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_Empfang",
|
||||
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