diff options
Diffstat (limited to 'scripts/preview.py')
| -rw-r--r-- | scripts/preview.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/preview.py b/scripts/preview.py index e173f865..4c9f0167 100644 --- a/scripts/preview.py +++ b/scripts/preview.py @@ -17,7 +17,7 @@ ASSET_TARGETS = ( ) EXPECTED_ASSET_NAMES = { **{target: f"herdr-{target}" for target in ASSET_TARGETS}, - "windows-x86_64": "herdr-windows-x86_64.exe", + "windows-x86_64": "herdr-windows-x86_64.zip", } HIDDEN_SUBJECTS = ( "docs: update website manifest", @@ -188,6 +188,10 @@ def asset_objects(urls: dict[str, str], shas: dict[str, str]) -> dict[str, dict[ sha = shas.get(target) if sha: entry["sha256"] = sha + if target.startswith("windows-"): + if not sha or not re.fullmatch(r"[0-9a-fA-F]{64}", sha): + raise ValueError(f"{target} requires a SHA-256 digest") + entry["format"] = "zip" assets[target] = entry return assets |
