From 08fbb8d9dcc230ca35217d908fa20ff7c9497faa Mon Sep 17 00:00:00 2001 From: Syuugo Date: Sat, 17 Sep 2022 21:38:33 +0900 Subject: [PATCH 1/3] Add batch script (#116) Co-authored-by: Howard Wu <40033067+Howard20181@users.noreply.github.com> --- README.md | 2 +- scripts/build.sh | 47 ++++++++++++++++++++++++++++++----------------- 2 files changed, 31 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 0538521..c9e45cb 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ 1. Select the root solution (none means no root) 1. Wait for the script to complete and the artifact will be in the `output` folder 1. Move the artifact to a place you like -1. Right-click `Install.ps1` and select `Run with PowerShell` +1. Double-click `Run.bat` - If you previously have a MagiskOnWSA installation, it will automatically uninstall the previous one while **preserving all user data** and install the new one, so don't worry about your data. - If you have an official WSA installation, you should uninstall it first. (In case you want to preserve your data, you can backup `%LOCALAPPDATA%\Packages\MicrosoftCorporationII.WindowsSubsystemForAndroid_8wekyb3d8bbwe\LocalCache\userdata.vhdx` before uninstallation and restore it after installation.) (If you want to restore the icons to the start menu, please install and use [WSAHelper](https://github.com/LSPosed/WSAHelper/releases/latest).) - If the popup windows disappear **without asking administrative permission** and WSA is not installed successfully, you should manually run `Install.ps1` as administrator: diff --git a/scripts/build.sh b/scripts/build.sh index a7d257e..9348764 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -658,7 +658,7 @@ sudo rm -rf "${WORK_DIR:?}"/wsa/"$ARCH"/\[Content_Types\].xml "$WORK_DIR"/wsa/"$ cp "$vclibs_PATH" "$xaml_PATH" "$WORK_DIR"/wsa/"$ARCH" || abort tee "$WORK_DIR"/wsa/"$ARCH"/Install.ps1 <