mirror of
https://github.com/lineageos4microg/docker-lineage-cicd
synced 2024-11-09 10:09:56 +01:00
Use new_build.sh for 20.0 builds
This commit is contained in:
parent
a311f3967f
commit
68490248cc
12
src/init.sh
12
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
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user