mirror of
https://github.com/MustardChef/WSABuilds.git
synced 2025-01-12 11:19:08 +01:00
parent
9335b1883b
commit
7e7363f64b
15
.github/workflows/magisk.yml
vendored
15
.github/workflows/magisk.yml
vendored
@ -195,10 +195,22 @@ jobs:
|
|||||||
with zipfile.ZipFile(out_file) as zip:
|
with zipfile.ZipFile(out_file) as zip:
|
||||||
extract_as(zip, f"lib/{ abi_map[arch][0] }/libmagisk64.so", "magisk64", "magisk")
|
extract_as(zip, f"lib/{ abi_map[arch][0] }/libmagisk64.so", "magisk64", "magisk")
|
||||||
extract_as(zip, f"lib/{ abi_map[arch][1] }/libmagisk32.so", "magisk32", "magisk")
|
extract_as(zip, f"lib/{ abi_map[arch][1] }/libmagisk32.so", "magisk32", "magisk")
|
||||||
|
standalone_policy = False
|
||||||
|
try:
|
||||||
|
zip.getinfo("f"lib/{ abi_map[arch][0] }/libmagiskpolicy.so"")
|
||||||
|
standalone_policy = True
|
||||||
|
except:
|
||||||
|
pass
|
||||||
extract_as(zip, f"lib/{ abi_map[arch][0] }/libmagiskinit.so", "magiskinit", "magisk")
|
extract_as(zip, f"lib/{ abi_map[arch][0] }/libmagiskinit.so", "magiskinit", "magisk")
|
||||||
|
if standalone_policy:
|
||||||
|
extract_as(zip, f"lib/{ abi_map[arch][0] }/libmagiskpolicy.so", "magiskpolicy", "magisk")
|
||||||
|
else:
|
||||||
extract_as(zip, f"lib/{ abi_map[arch][0] }/libmagiskinit.so", "magiskpolicy", "magisk")
|
extract_as(zip, f"lib/{ abi_map[arch][0] }/libmagiskinit.so", "magiskpolicy", "magisk")
|
||||||
extract_as(zip, f"lib/{ abi_map[arch][0] }/libmagiskboot.so", "magiskboot", "magisk")
|
extract_as(zip, f"lib/{ abi_map[arch][0] }/libmagiskboot.so", "magiskboot", "magisk")
|
||||||
extract_as(zip, f"lib/{ abi_map[arch][0] }/libbusybox.so", "busybox", "magisk")
|
extract_as(zip, f"lib/{ abi_map[arch][0] }/libbusybox.so", "busybox", "magisk")
|
||||||
|
if standalone_policy:
|
||||||
|
extract_as(zip, f"lib/{ abi_map['x64'][0] }/libmagiskpolicy.so", "magiskpolicy", ".")
|
||||||
|
else:
|
||||||
extract_as(zip, f"lib/{ abi_map['x64'][0] }/libmagiskinit.so", "magiskpolicy", ".")
|
extract_as(zip, f"lib/{ abi_map['x64'][0] }/libmagiskinit.so", "magiskpolicy", ".")
|
||||||
extract_as(zip, f"assets/boot_patch.sh", "boot_patch.sh", "magisk")
|
extract_as(zip, f"assets/boot_patch.sh", "boot_patch.sh", "magisk")
|
||||||
extract_as(zip, f"assets/util_functions.sh", "util_functions.sh", "magisk")
|
extract_as(zip, f"assets/util_functions.sh", "util_functions.sh", "magisk")
|
||||||
@ -304,7 +316,8 @@ jobs:
|
|||||||
chmod 0755 /dev/wsa-magisk/magisk32
|
chmod 0755 /dev/wsa-magisk/magisk32
|
||||||
copy /sbin/magiskinit /dev/wsa-magisk/magiskinit
|
copy /sbin/magiskinit /dev/wsa-magisk/magiskinit
|
||||||
chmod 0755 /dev/wsa-magisk/magiskinit
|
chmod 0755 /dev/wsa-magisk/magiskinit
|
||||||
symlink ./magiskinit /dev/wsa-magisk/magiskpolicy
|
copy /sbin/magiskpolicy /dev/wsa-magisk/magiskpolicy
|
||||||
|
chmod 0755 /dev/wsa-magisk/magiskpolicy
|
||||||
mkdir /dev/wsa-magisk/.magisk 700
|
mkdir /dev/wsa-magisk/.magisk 700
|
||||||
mkdir /dev/wsa-magisk/.magisk/mirror 700
|
mkdir /dev/wsa-magisk/.magisk/mirror 700
|
||||||
mkdir /dev/wsa-magisk/.magisk/block 700
|
mkdir /dev/wsa-magisk/.magisk/block 700
|
||||||
|
Loading…
x
Reference in New Issue
Block a user