From 68490248cc8af518813c9bd755a5bfead7f41b67 Mon Sep 17 00:00:00 2001 From: Pete Fotheringham Date: Sun, 15 Sep 2024 12:55:56 +0100 Subject: [PATCH] Use new_build.sh for 20.0 builds --- src/init.sh | 12 ++++++++---- src/new_build.sh | 4 ++++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/init.sh b/src/init.sh index bcc63ae..04b7625 100755 --- a/src/init.sh +++ b/src/init.sh @@ -65,10 +65,14 @@ visibility = ["//visibility:public"], ) _EOB -build_file="build.sh" -if [ "$BRANCH_NAME" = "lineage-21.0" ]; then - build_file="new_build.sh" -fi +case "$BRANCH_NAME" in + "lineage-20.0" | "lineage-21.0" ) + build_file="new_build.sh" + ;; + * ) + build_file="build.sh" + ;; +esac if [ "$CRONTAB_TIME" = "now" ]; then /root/$build_file diff --git a/src/new_build.sh b/src/new_build.sh index ec3b05d..f9dd912 100755 --- a/src/new_build.sh +++ b/src/new_build.sh @@ -145,6 +145,10 @@ cd "$SRC_DIR/$branch_dir" if [ -n "$branch" ] && [ -n "$devices" ]; then case "$branch" in + lineage-20.0*) + themuppets_branch="lineage-20.0" + android_version="13" + ;; lineage-21.0*) themuppets_branch="lineage-21.0" android_version="14"