Bind releases to licensing build signatures
This commit is contained in:
7 files changed
+96
-15
No files matched your search
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user