acli: drop x86_64-darwin from update script

This commit is contained in:
Emily
2026-07-15 03:59:21 +01:00
parent 342b6b2927
commit 91c3cab3e6
+3 -4
View File
@@ -10,7 +10,7 @@ from urllib.request import urlopen, Request
def get_arch_os_key(url) -> str:
if "darwin_amd64" in url:
return "x86_64-darwin"
return None
elif "darwin_arm64" in url:
return "aarch64-darwin"
elif "linux_amd64" in url:
@@ -57,9 +57,8 @@ def parse_and_check(content):
)
for url, hex_sha in matches:
key = get_arch_os_key(url)
data["sources"][key] = {"url": url, "sha256": hex_sha}
if key := get_arch_os_key(url):
data["sources"][key] = {"url": url, "sha256": hex_sha}
data["sources"] = dict(sorted(data["sources"].items()))