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 -1
View File
@@ -218,9 +218,15 @@ def main() -> None:
or manifest.get("schemaVersion") != 2
or manifest.get("version") != arguments.version
or manifest.get("buildType") != "RelWithDebInfo"
or not isinstance(manifest.get("buildSignature"), str)
or not manifest["buildSignature"]
or len(manifest["buildSignature"]) > 256
or any(
character in manifest["buildSignature"] for character in "\r\n\0"
)
):
fail(
"release manifest schema/version/build type does not match the feed"
"release manifest schema/version/build type/signature does not match the feed"
)
source_epoch = os.environ.get("SOURCE_DATE_EPOCH")
@@ -267,6 +273,7 @@ def main() -> None:
if manifest_path is not None:
release["releaseManifestSha256"] = digest(manifest_path)
release["buildType"] = manifest["buildType"]
release["buildSignature"] = manifest["buildSignature"]
payload_document = {
"schemaVersion": 1,