From 1eb3d5f55a2746db0fb4c0ac55fe2e444b5a3107 Mon Sep 17 00:00:00 2001 From: "Dennis B." <84542576+LostBoxArt@users.noreply.github.com> Date: Wed, 20 May 2026 22:09:26 +0300 Subject: [PATCH] fix(download): strip *-prefix from sha256sum filenames (#15) sha256sum binary-mode output prefixes filenames with `*` and the parser was using parts[-1] verbatim, so checksum lookups by bare filename returned None and the wrapper raised RuntimeError instead of installing the binary. Thanks LostBoxArt. --- src/invisible_playwright/download.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/invisible_playwright/download.py b/src/invisible_playwright/download.py index fc51d65..58a5e8f 100644 --- a/src/invisible_playwright/download.py +++ b/src/invisible_playwright/download.py @@ -96,7 +96,9 @@ def _parse_checksums(text: str) -> dict[str, str]: continue parts = line.split() if len(parts) >= 2: - out[parts[-1]] = parts[0] + # sha256sum uses ' *' or ' ' prefix for binary vs text mode + key = parts[-1].lstrip("*") + out[key] = parts[0] return out