Add support for linux arm64 for #48

This commit is contained in:
David Dworken
2022-12-11 20:39:45 -08:00
parent 857e423e10
commit 7c86b812bf
6 changed files with 38 additions and 2 deletions

View File

@ -14,8 +14,10 @@ with urllib.request.urlopen('https://api.hishtory.dev/api/v1/download') as respo
resp_body = response.read()
download_options = json.loads(resp_body)
if platform.system() == 'Linux':
if platform.system() == 'Linux' and platform.machine() == "x86_64":
download_url = download_options['linux_amd_64_url']
if platform.system() == 'Linux' and platform.machine() == "arm64":
download_url = download_options['linux_arm_64_url']
elif platform.system() == 'Darwin' and platform.machine() == 'arm64':
download_url = download_options['darwin_arm_64_url']
elif platform.system() == 'Darwin' and platform.machine() == 'x86_64':