mirror of
https://github.com/Abdess/retrobios.git
synced 2026-06-19 02:22:48 +00:00
refactor: consolidate CI pipeline, remove third-party deps
This commit is contained in:
parent
e6ea0484a8
commit
3453f89d9d
34 changed files with 206 additions and 2091 deletions
|
|
@ -7,6 +7,7 @@ and file resolution - eliminates DRY violations across scripts.
|
|||
from __future__ import annotations
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
import os
|
||||
import zipfile
|
||||
import zlib
|
||||
|
|
@ -38,6 +39,12 @@ def compute_hashes(filepath: str | Path) -> dict[str, str]:
|
|||
}
|
||||
|
||||
|
||||
def load_database(db_path: str) -> dict:
|
||||
"""Load database.json and return parsed dict."""
|
||||
with open(db_path) as f:
|
||||
return json.load(f)
|
||||
|
||||
|
||||
def md5sum(filepath: str | Path) -> str:
|
||||
"""Compute MD5 of a file - matches Batocera's md5sum()."""
|
||||
h = hashlib.md5()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue