35 lines
1.1 KiB
Python
35 lines
1.1 KiB
Python
#!/usr/bin/env python3
|
|
"""Build DEB and RPM packages by reusing the pinned core's packaging code."""
|
|
|
|
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_build_packages", CORE / "scripts" / "build_packages.py")
|
|
if not SPEC or not SPEC.loader:
|
|
raise SystemExit("Paketierungsmodul 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.DIST = ROOT / "dist"
|
|
module.OUTPUT = module.DIST / "packages"
|
|
module.HOMEPAGE = "https://git.blackwall.ipv64.de/pan/synadm-tui-thueringen"
|
|
module.EDITIONS = (
|
|
module.Edition(
|
|
"synadm-tui-thueringen",
|
|
"synadm-tui-thueringen",
|
|
"Thüringen-Edition der synadm Terminal-Oberfläche",
|
|
"Regionales Branding auf dem unveränderten Anwendungskern von synadm-tui.",
|
|
),
|
|
)
|
|
|
|
|
|
raise SystemExit(module.main())
|