Bind releases to licensing build signatures

This commit is contained in:
faumaray committed 2026-08-02 01:50:40 +03:00
1 parent 9e6e6ca97b
commit 5d06619d66
7 files changed
+96 -15

No files matched your search

+8
View File
@@ -103,6 +103,14 @@ def load_and_validate(root: Path, expected_version: str | None = None) -> dict:
)
if manifest.get("buildType") != "RelWithDebInfo":
raise ValueError("release manifest buildType must be RelWithDebInfo")
build_signature = manifest.get("buildSignature")
if (
not isinstance(build_signature, str)
or not build_signature
or len(build_signature) > 256
or any(character in build_signature for character in "\r\n\0")
):
raise ValueError("release manifest has no valid build signature")
entries = manifest.get("files")
if not isinstance(entries, list):