Skip to content

Commit d7f5437

Browse files
authored
Update generateKernelSULink.py
1 parent 1ffac1d commit d7f5437

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎MagiskOnWSAOld/scripts/generateKernelSULink.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def __repr__(self):
6666
for asset in assets:
6767
if re.match(f'kernel-WSA-{abi_map[arch]}-{kernelVersion}.*.zip$', asset["name"]) and asset["content_type"] == "application/zip":
6868
link = asset["browser_download_url"]
69-
if re.match(f'KernelSU_{release_name}_.*-release.*.apk$', asset["name"]) and asset["content_type"] == "application/vnd.android.package-archive":
69+
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":
7070
apk = asset["browser_download_url"]
7171
break
7272
if link == "":

0 commit comments

Comments
 (0)