Harden signed feeds and RelWithDebInfo releases
Modular container CI / release-build (push) Has been cancelled

This commit is contained in:
faumaray committed 2026-08-01 18:02:55 +03:00
1 parent 5b2d27a1e8
commit 8ac39621fd
21 files changed
+243 -40

No files matched your search

+8 -2
View File
@@ -107,7 +107,9 @@ def collect_entries(root: Path) -> list[dict[str, object]]:
return entries
def write_manifest(root: Path, version: str, output: Path) -> None:
def write_manifest(
root: Path, version: str, build_type: str, output: Path
) -> None:
entries = collect_entries(root)
regular_files = {
str(entry["path"]) for entry in entries if entry["type"] == "file"
@@ -141,6 +143,7 @@ def write_manifest(root: Path, version: str, output: Path) -> None:
manifest = {
"schemaVersion": 2,
"version": version,
"buildType": build_type,
"executable": executable,
"updater": updater,
"core": core,
@@ -168,6 +171,9 @@ def main() -> int:
parser = argparse.ArgumentParser()
parser.add_argument("--root", required=True, type=Path)
parser.add_argument("--version", required=True)
parser.add_argument(
"--build-type", choices=("RelWithDebInfo",), required=True
)
parser.add_argument("--output", type=Path)
arguments = parser.parse_args()
@@ -175,7 +181,7 @@ def main() -> int:
parser.error("version must contain only letters, digits, dot, underscore, or dash")
root = arguments.root.resolve(strict=True)
output = arguments.output or root / "manifest.json"
write_manifest(root, arguments.version, output)
write_manifest(root, arguments.version, arguments.build_type, output)
return 0