Create Thüringen branding edition on shared core

This commit is contained in:
pan
2026-07-05 22:38:59 +02:00
commit ff53f88f35
19 changed files with 359 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
#!/usr/bin/env python3
"""Publish Thüringen packages via the pinned core's secure uploader."""
from __future__ import annotations
import importlib.util
import os
import sys
from pathlib import Path
ROOT = Path(__file__).resolve().parent.parent
CORE = Path(os.environ.get("SYNADM_TUI_CORE", ROOT / "vendor" / "synadm-tui")).resolve()
SPEC = importlib.util.spec_from_file_location("synadm_core_publish_packages", CORE / "scripts" / "publish_packages.py")
if not SPEC or not SPEC.loader:
raise SystemExit("Uploadmodul des synadm-tui-Core fehlt.")
module = importlib.util.module_from_spec(SPEC)
sys.modules[SPEC.name] = module
SPEC.loader.exec_module(module)
module.ROOT = ROOT
module.PACKAGE_DIR = ROOT / "dist" / "packages"
module.DEFAULT_DISTRIBUTION = "thueringen"
module.DEFAULT_RPM_GROUP = "thueringen"
raise SystemExit(module.main())