diff options
| author | Can Celik <ogulcancelik@gmail.com> | 2026-07-25 02:40:14 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-25 02:40:14 +0300 |
| commit | 8afd52ae57f9237f4f46138ad224dfc621d7ba59 (patch) | |
| tree | 349bbbd86c57863539ebc4c2eacf34550e076fa2 /scripts/preview.py | |
| parent | 5f1957c27bd23f73b339265d3acd32f4a21878a3 (diff) | |
fix: bundle modern ConPTY on Windows (#1828)
refs #1533
refs #1644
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 |
