mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
auto-update.py: Added aarch64 check for pwngrid/bettercap
Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
@ -35,22 +35,23 @@ def check(version, repo, native=True):
|
||||
if remote > local:
|
||||
if not native:
|
||||
info['url'] = "https://github.com/%s/archive/%s.zip" % (repo, latest['tag_name'])
|
||||
elif is_arm:
|
||||
# check if this release is compatible with arm6
|
||||
for asset in latest['assets']:
|
||||
download_url = asset['browser_download_url']
|
||||
if (download_url.endswith('.zip') and
|
||||
(info['arch'] in download_url or (is_arm and 'armhf' in download_url))):
|
||||
info['url'] = download_url
|
||||
break
|
||||
elif is_arm64:
|
||||
# check if this release is compatible with aarch64
|
||||
for asset in latest['assets']:
|
||||
download_url = asset['browser_download_url']
|
||||
if (download_url.endswith('.zip') and
|
||||
(info['arch'] in download_url or (is_arm64 and 'aarch64' in download_url))):
|
||||
info['url'] = download_url
|
||||
break
|
||||
else:
|
||||
if is_arm:
|
||||
# check if this release is compatible with arm6
|
||||
for asset in latest['assets']:
|
||||
download_url = asset['browser_download_url']
|
||||
if (download_url.endswith('.zip') and
|
||||
(info['arch'] in download_url or (is_arm and 'armhf' in download_url))):
|
||||
info['url'] = download_url
|
||||
break
|
||||
elif is_arm64:
|
||||
# check if this release is compatible with aarch64
|
||||
for asset in latest['assets']:
|
||||
download_url = asset['browser_download_url']
|
||||
if (download_url.endswith('.zip') and
|
||||
(info['arch'] in download_url or (is_arm64 and 'aarch64' in download_url))):
|
||||
info['url'] = download_url
|
||||
break
|
||||
|
||||
return info
|
||||
|
||||
|
Reference in New Issue
Block a user