fix: version fallback reads from dpkg when metadata unavailable

This commit is contained in:
nox-project
2026-04-11 15:01:17 +02:00
parent 911e814080
commit 47bd936b6d
+6
View File
@@ -145,6 +145,12 @@ except Exception:
VERSION = "1.0.0"
else:
VERSION = "1.0.0"
if VERSION == "1.0.0":
try:
import subprocess as _sp2
VERSION = _sp2.check_output(["dpkg-query", "-W", "-f=${Version}", "nox-cli"], stderr=_sp2.DEVNULL).decode().strip() or VERSION
except Exception:
pass
BUILD_DATE = "2026-04-02"
# ── Smart Path Layout ──────────────────────────────────────────────────