diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2021-06-01 16:19:27 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2021-06-01 16:19:27 +0200 |
commit | bcb73bf489ec420d44621ed94c2dcf498930bcda (patch) | |
tree | ed6330fdfd7f10cfbcf1f181df0889cfb1292743 | |
parent | 09105a3a7532f79544f587c51901bf8c0c2d4cb3 (diff) | |
download | bin-bcb73bf489ec420d44621ed94c2dcf498930bcda.zip bin-bcb73bf489ec420d44621ed94c2dcf498930bcda.tar.gz |
godot-update : deploy android templates
-rwxr-xr-x | godot-update | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/godot-update b/godot-update index 85d927e..a55811d 100755 --- a/godot-update +++ b/godot-update @@ -3,8 +3,7 @@ RED="\033[0;31m" RESET="\033[0m" -DST=$HOME/bin -DST_EXPORT=$DST/godot-export +TEMPLATE_DIR=$HOME/.local/share/godot/templates/3.x FORCE=0 CLEAN=0 @@ -45,13 +44,12 @@ function build() time scons -j$J platform=$platform target=$target tools=yes colored=yes pulseaudio=no bits=64 warnings=no #custom_modules=../modules # scons -j$J platform=$platform target=$target tools=no colored=yes pulseaudio=no bits=64 warnings=no # scons -j$J platform=$platform target=$target tools=no colored=yes pulseaudio=no bits=32 warnings=no - cp ./bin/godot*tools* $DST/godot if [ $ANDROID -eq 1 ] then export ANDROID_HOME=/opt/android-sdk export ANDROID_NDK_ROOT=/opt/android-ndk - [ ! -d $DST_EXPORT ] && mkdir $DST_EXPORT + [ ! -d $TEMPLATE_DIR ] && mkdir $TEMPLATE_DIR [ $CLEAN -eq 1 ] && scons platform=android --clean # https://docs.godotengine.org/en/3.2/development/compiling/compiling_for_android.html @@ -68,6 +66,8 @@ function build() done echo -e "${RED}gradlew build$RESET" pushd platform/android/java && ./gradlew generateGodotTemplates && popd + + cp bin/android* $TEMPLATE_DIR/ fi } |