Update generateKernelSULink.py

This commit is contained in:
MustardChef 2024-05-03 11:29:55 +01:00 committed by GitHub
parent 1ffac1d69a
commit d7f5437f16
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -66,7 +66,7 @@ if res.status_code == 200:
for asset in assets: for asset in assets:
if re.match(f'kernel-WSA-{abi_map[arch]}-{kernelVersion}.*.zip$', asset["name"]) and asset["content_type"] == "application/zip": if re.match(f'kernel-WSA-{abi_map[arch]}-{kernelVersion}.*.zip$', asset["name"]) and asset["content_type"] == "application/zip":
link = asset["browser_download_url"] link = asset["browser_download_url"]
if re.match(f'KernelSU_{release_name}_.*-release.*.apk$', asset["name"]) and asset["content_type"] == "application/vnd.android.package-archive": if re.match(f'KernelSU_{release_name}_.*-release.*.apk$', asset["name"]) or re.match(f'KernelSU_v.*-release.apk$', asset["name"]) and asset["content_type"] == "application/vnd.android.package-archive":
apk = asset["browser_download_url"] apk = asset["browser_download_url"]
break break
if link == "": if link == "":