Translate repository documentation and reorganize version history

This commit is contained in:
2026-08-03 19:47:19 +00:00
parent 5c5edbaac4
commit 8a9115af83
289 changed files with 2544 additions and 3393 deletions
-1
View File
@@ -20,7 +20,6 @@ EXCLUDED_FILES = {
"data/config/config.json",
"data/config/APPINFO.json",
"app/main_old.py",
"PRUEFEN-0.5.5.5.sh",
"assetmanager.db",
".public-release-local-patterns",
}
+12
View File
@@ -0,0 +1,12 @@
#!/bin/sh
set -eu
ROOT="${1:-/srv/docker/assetmanager}"
cd "$ROOT"
echo "VERSION: $(cat VERSION)"
grep -n 'APP_VERSION = "0.5.5.5"' app/version.py
grep -n 'powershell -ExecutionPolicy Bypass -File' app/software_control.py
if sed -n '/def _launch_uploaded_script/,/return _run_meshctrl/p' app/software_control.py | grep -q "action=.*--powershell"; then
echo "FEHLER: _launch_uploaded_script contains --powershell" >&2
exit 1
fi
echo "files auf dem Host are korrekt."
+20
View File
@@ -48,6 +48,25 @@ def check_version() -> None:
ok(f"Version exports are valid ({app_version})")
def check_repository_documentation() -> None:
required = [
ROOT / "README.md",
ROOT / "CONTRIBUTING.md",
ROOT / "SECURITY.md",
ROOT / "THIRD_PARTY_NOTICES.md",
ROOT / "docs" / "architecture" / "SOFTWARE-CLIENT-ARCHITECTURE.md",
ROOT / "docs" / "version-history" / "README.md",
ROOT / "docs" / "version-history" / f"UPDATE-{(ROOT / 'VERSION').read_text(encoding='utf-8').strip()}.md",
]
missing = [str(path.relative_to(ROOT)) for path in required if not path.is_file()]
if missing:
fail("Required repository documentation is missing: " + ", ".join(missing))
root_notes = sorted(ROOT.glob("UPDATE-*.txt")) + sorted(ROOT.glob("UPDATE-*.md"))
if root_notes:
fail("Release notes must be stored under docs/version-history/: " + ", ".join(path.name for path in root_notes))
ok("Repository documentation layout is valid")
def check_compile() -> None:
if not compileall.compile_dir(str(APP_DIR), quiet=1, force=True):
fail("Python compilation failed")
@@ -136,6 +155,7 @@ def check_fastapi_import() -> None:
def main() -> None:
print("AssetManager release validation")
check_version()
check_repository_documentation()
check_compile()
check_translations()
check_templates()