mirror of
https://github.com/MustardChef/WSABuilds.git
synced 2024-11-14 07:35:07 +01:00
Merge branch 'main' of https://github.com/LSPosed/MagiskOnWSALocal
This commit is contained in:
commit
0b1f8e305f
@ -68,6 +68,10 @@ How do I uninstall Magisk?
|
||||
|
||||
- Download a WSA version that doesn't include Magisk from the [Releases page](https://github.com/PeterNjeim/MagiskOnWSA/releases). Then follow the [Installation instructions](#installation)
|
||||
|
||||
Can I switch between OpenGApps and MindTheGapps?
|
||||
|
||||
- No. GApps will no longer function. Do a [complete uninstallation](#uninstallation) before switching
|
||||
|
||||
How do I install custom Magisk or GApps?
|
||||
|
||||
1. Fork this repository
|
||||
|
@ -29,6 +29,11 @@ if [ "$HOST_ARCH" != "x86_64" ] && [ "$HOST_ARCH" != "aarch64" ]; then
|
||||
fi
|
||||
cd "$(dirname "$0")" || exit 1
|
||||
trap umount_clean EXIT
|
||||
PARENT_DIR="$(dirname "$PWD")"
|
||||
# export TMPDIR=$PARENT_DIR/WORK_DIR_
|
||||
if [ "$TMPDIR" ] && [ ! -d "$TMPDIR" ]; then
|
||||
mkdir -p "$TMPDIR"
|
||||
fi
|
||||
WORK_DIR=$(mktemp -d -t wsa-build-XXXXXXXXXX_) || exit 1
|
||||
DOWNLOAD_DIR=../download
|
||||
DOWNLOAD_CONF_NAME=download.list
|
||||
@ -51,6 +56,10 @@ umount_clean() {
|
||||
else
|
||||
rm -rf "${WORK_DIR:?}"
|
||||
fi
|
||||
if [ "$TMPDIR" ] && [ -d "$TMPDIR" ]; then
|
||||
rm -rf "${TMPDIR:?}"
|
||||
unset TMPDIR
|
||||
fi
|
||||
}
|
||||
clean_download() {
|
||||
if [ -d "$DOWNLOAD_DIR" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user