From d7f5437f168695f0a944d18bfd26306aa1fb42d3 Mon Sep 17 00:00:00 2001 From: MustardChef <68516357+MustardChef@users.noreply.github.com> Date: Fri, 3 May 2024 11:29:55 +0100 Subject: [PATCH] Update generateKernelSULink.py --- MagiskOnWSAOld/scripts/generateKernelSULink.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MagiskOnWSAOld/scripts/generateKernelSULink.py b/MagiskOnWSAOld/scripts/generateKernelSULink.py index 9bcc127..ad15475 100644 --- a/MagiskOnWSAOld/scripts/generateKernelSULink.py +++ b/MagiskOnWSAOld/scripts/generateKernelSULink.py @@ -66,7 +66,7 @@ if res.status_code == 200: for asset in assets: if re.match(f'kernel-WSA-{abi_map[arch]}-{kernelVersion}.*.zip$', asset["name"]) and asset["content_type"] == "application/zip": 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"] break if link == "":