Fix release hash validation on older Python
Release LinkLog / release (push) Successful in 9s
Build LinkLog Development Image / development-image (push) Successful in 9s

This commit is contained in:
Olaf
2026-08-28 10:44:12 +02:00
parent 9bf9c94dd6
commit 74b2c400c6
4 changed files with 20 additions and 3 deletions
+4 -1
View File
@@ -38,8 +38,11 @@ def read_packaged_manifest(xpi_path: Path) -> dict:
def sha256_digest(xpi_path: Path) -> str:
digest = hashlib.sha256()
with xpi_path.open('rb') as xpi_file:
return hashlib.file_digest(xpi_file, 'sha256').hexdigest()
for block in iter(lambda: xpi_file.read(1024 * 1024), b''):
digest.update(block)
return digest.hexdigest()
def update_about_plugin_link(xpi_path: Path) -> None: