From 699bcf56eed4529adf3999d071531db0169916e3 Mon Sep 17 00:00:00 2001 From: Howard Wu <40033067+Howard20181@users.noreply.github.com> Date: Wed, 29 Mar 2023 20:05:27 +0800 Subject: [PATCH] `run.sh` added usage introduction --- scripts/run.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/scripts/run.sh b/scripts/run.sh index 9ea4dc6..5f70a02 100755 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -45,6 +45,20 @@ function YesNoBox { $DIALOG --title "${o[title]}" --yesno "${o[text]}" 0 0 } +function DialogBox { + declare -A o="$1" + shift + $DIALOG --title "${o[title]}" --msgbox "${o[text]}" 0 0 +} +intro="Welcome to MagiskOnWSA! + + With this utility, you can integrate Magisk for WSA easily. + Use arrow keys to navigate, and press space to select. + Press enter to confirm. +" +DialogBox "([title]='Intro to MagiskOnWSA' \ + [text]='$intro')" + ARCH=$( Radiolist '([title]="Build arch" [default]="x64")' \