22 lines
620 B
Python
22 lines
620 B
Python
|
|
"""Sichtbare Client-Build-Kennung (Office, Empfangs-/Chat-Hüllen)."""
|
||
|
|
|
||
|
|
from __future__ import annotations
|
||
|
|
|
||
|
|
|
||
|
|
def get_client_watermark_text(*, short: bool = False) -> str:
|
||
|
|
"""z. B. ``v1.2.0 · 20260519_195109`` oder kurz ``v1.2.0``."""
|
||
|
|
try:
|
||
|
|
from aza_version import APP_VERSION
|
||
|
|
except Exception:
|
||
|
|
APP_VERSION = "?"
|
||
|
|
build_stamp = ""
|
||
|
|
try:
|
||
|
|
from _build_info import BUILD_TIMESTAMP
|
||
|
|
|
||
|
|
build_stamp = (BUILD_TIMESTAMP or "").strip()
|
||
|
|
except Exception:
|
||
|
|
pass
|
||
|
|
if short or not build_stamp:
|
||
|
|
return f"v{APP_VERSION}"
|
||
|
|
return f"v{APP_VERSION} · {build_stamp}"
|