diff options
| author | Jérémy Zurcher <jeremy@asynk.ch> | 2023-04-14 15:30:11 +0200 | 
|---|---|---|
| committer | Jérémy Zurcher <jeremy@asynk.ch> | 2023-04-14 15:30:11 +0200 | 
| commit | 0465f6a32ab948093bc5ac180b5f0a6e1b6c1c6a (patch) | |
| tree | 16d2ce98c5bd44504c6d4de269999e0998759550 | |
| parent | 2d87af9c6794ac30f28917f219fdbfeb5df35f64 (diff) | |
| download | bin-0465f6a32ab948093bc5ac180b5f0a6e1b6c1c6a.zip bin-0465f6a32ab948093bc5ac180b5f0a6e1b6c1c6a.tar.gz | |
godot-update : default to 4 + android
| -rwxr-xr-x | godot-update | 22 | 
1 files changed, 15 insertions, 7 deletions
| diff --git a/godot-update b/godot-update index 8172a70..717a867 100755 --- a/godot-update +++ b/godot-update @@ -3,14 +3,14 @@  RED="\033[0;31m"  RESET="\033[0m" -TEMPLATE_DIR=$HOME/.local/share/godot/templates/3.x +TEMPLATE_DIR=$HOME/.local/share/godot/export_templates  DIR=godot  FORCE=0  CLEAN=0 -ANDROID=0 +ANDROID=1  OPTIMIZED=0 -VERSION=3 +VERSION=4  for I in  "$@"  do @@ -19,7 +19,7 @@ do          FORCE=1          ;;          a) -        ANDROID=1 +        ANDROID=0          ;;          c)          CLEAN=1 @@ -27,10 +27,12 @@ do          o)          OPTIMIZED=1          ;; -        4) +        3)          VERSION=$I +        TEMPLATE_DIR=$HOME/.local/share/godot/templates      esac  done +TEMPLATE_DIR=$TEMPLATE_DIR/$VERSION.x  if [ $VERSION == 4 ]  then @@ -79,8 +81,14 @@ function build()          do              for arch in arm64v8 armv7; #x86_6              do -                echo -e "build : ${RED}android$RESET android_arch=$RED$arch$RESET target=$RED$target$RESET ndk_platform=$RED$ndk_platform$RESET" -                time scons -j$J platform=android target=$target android_arch=$arch ndk_platform=$ndk_platform tools=no disable_3d=true $common_flags +                if [ $VERSION == 3 ] +                then +                  aarch="android_arch" +                else +                  aarch="arch" +                fi +                echo -e "build : ${RED}android$RESET $aarch=$RED$arch$RESET target=$RED$target$RESET ndk_platform=$RED$ndk_platform$RESET" +                time scons -j$J platform=android target=$target $aarch=$arch ndk_platform=$ndk_platform tools=no disable_3d=true $common_flags              done          done          echo -e "${RED}gradlew build$RESET" | 
