diff --git a/ReapersSky-1.0.0.mrpack b/ReapersSky-1.0.0.mrpack index eccd5fc..5e6e2af 100644 Binary files a/ReapersSky-1.0.0.mrpack and b/ReapersSky-1.0.0.mrpack differ diff --git a/build_mrpack.py b/build_mrpack.py index 4c8ee84..8555e5a 100755 --- a/build_mrpack.py +++ b/build_mrpack.py @@ -41,6 +41,13 @@ def sha1(path): h.update(block) return h.hexdigest() +def sha512(path): + h = hashlib.sha512() + with open(path, "rb") as f: + for block in iter(lambda: f.read(65536), b""): + h.update(block) + return h.hexdigest() + def resolve(sha): url = f"https://api.modrinth.com/v2/version_file/{sha}?algorithm=sha1" req = urllib.request.Request(url, headers={"User-Agent": USER_AGENT}) @@ -64,7 +71,7 @@ def main(): sys.exit(1) files.append({ "path": "mods/" + fname, - "hashes": {"sha1": sha1(path)}, + "hashes": {"sha1": sha1(path), "sha512": sha512(path)}, "env": {"client": "required", "server": "optional"}, "downloads": [url], "fileSize": fsize,