mirror of
https://github.com/MustardChef/WSABuilds.git
synced 2024-11-27 13:44:16 +01:00
Merge branch 'main' of https://github.com/LSPosed/MagiskOnWSALocal
This commit is contained in:
commit
861372aea2
@ -399,7 +399,7 @@ if [ "$GAPPS_BRAND" != 'none' ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Expand images"
|
echo "Expand images"
|
||||||
|
if [ ! -f /etc/mtab ]; then sudo ln -s /proc/self/mounts /etc/mtab; fi
|
||||||
e2fsck -yf "$WORK_DIR"/wsa/"$ARCH"/system_ext.img || abort
|
e2fsck -yf "$WORK_DIR"/wsa/"$ARCH"/system_ext.img || abort
|
||||||
SYSTEM_EXT_SIZE=$(($(du --apparent-size -sB512 "$WORK_DIR"/wsa/"$ARCH"/system_ext.img | cut -f1) + 20000))
|
SYSTEM_EXT_SIZE=$(($(du --apparent-size -sB512 "$WORK_DIR"/wsa/"$ARCH"/system_ext.img | cut -f1) + 20000))
|
||||||
if [ -d "$WORK_DIR"/gapps/system_ext ]; then
|
if [ -d "$WORK_DIR"/gapps/system_ext ]; then
|
||||||
|
@ -52,6 +52,9 @@ if brand == "OpenGApps":
|
|||||||
j = json.loads(res.content)
|
j = json.loads(res.content)
|
||||||
link = {i["name"]: i for i in j["archs"][abi_map[arch]]
|
link = {i["name"]: i for i in j["archs"][abi_map[arch]]
|
||||||
["apis"][release]["variants"]}[variant]["zip"]
|
["apis"][release]["variants"]}[variant]["zip"]
|
||||||
|
# print(f"JSON={j}", flush=True)
|
||||||
|
DATE=j["archs"][abi_map[arch]]["date"]
|
||||||
|
print(f"DATE={DATE}", flush=True)
|
||||||
except Exception:
|
except Exception:
|
||||||
print("Failed to fetch from OpenGApps API, fallbacking to SourceForge RSS...")
|
print("Failed to fetch from OpenGApps API, fallbacking to SourceForge RSS...")
|
||||||
res = requests.get(
|
res = requests.get(
|
||||||
|
Loading…
Reference in New Issue
Block a user