mirror of
https://github.com/ddworken/hishtory.git
synced 2025-08-13 16:57:23 +02:00
Add support for linux arm64 for #48
This commit is contained in:
@ -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':
|
||||
|
Reference in New Issue
Block a user