Skip to content

Commit

Permalink
Don't allow install gapps and kernelsu at the same time
Browse files Browse the repository at this point in the history
close#783
  • Loading branch information
Howard20181 committed Mar 5, 2024
1 parent 8cee064 commit bc81b40
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 4 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,10 @@ if [ "$DEBUG" ]; then
set -x
fi

if [ "$HAS_GAPPS" ] && [ "$ROOT_SOL" = "kernelsu" ]; then
abort "Unsupported combination: Install GApps and KernelSU"
fi

# shellcheck disable=SC1091
[ -f "$PYTHON_VENV_DIR/bin/activate" ] && {
source "$PYTHON_VENV_DIR/bin/activate" || abort "Failed to activate virtual environment, please re-run install_deps.sh"
Expand Down
7 changes: 3 additions & 4 deletions scripts/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,9 @@ if [ "$ROOT_SOL" = "magisk" ]; then
'debug' "Canary Channel Debug Build" 'off'
)
COMMAND_LINE+=(--magisk-ver "$MAGISK_VER")
fi

if (YesNoBox '([title]="Install GApps" [text]="Do you want to install GApps?")'); then
COMMAND_LINE+=(--install-gapps)
if (YesNoBox '([title]="Install GApps" [text]="Do you want to install GApps?")'); then
COMMAND_LINE+=(--install-gapps)
fi
fi

if (YesNoBox '([title]="Remove Amazon Appstore" [text]="Do you want to remove Amazon Appstore?")' no); then
Expand Down

0 comments on commit bc81b40

Please sign in to comment.