From 0a1e1f794cc1ddfafc90debbb0dc825f5ca71dd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sat, 16 Jul 2022 09:11:31 +0200 Subject: godot-update : add DIR, use custom.py for templates only --- godot-update | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/godot-update b/godot-update index ed077fe..06b9003 100755 --- a/godot-update +++ b/godot-update @@ -5,6 +5,7 @@ RESET="\033[0m" TEMPLATE_DIR=$HOME/.local/share/godot/templates/3.x +DIR=godot FORCE=0 CLEAN=0 ANDROID=0 @@ -24,10 +25,12 @@ do ;; o) OPTIMIZED=1 + ;; + *) + DIR=$I esac done - function build() { @@ -50,6 +53,7 @@ function build() if [ $ANDROID -eq 1 ] then + cp ../custom.py . export ANDROID_HOME=/opt/android-sdk export ANDROID_NDK_ROOT=/opt/android-ndk [ ! -d $TEMPLATE_DIR ] && mkdir $TEMPLATE_DIR @@ -71,10 +75,11 @@ function build() pushd platform/android/java && ./gradlew --no-daemon generateGodotTemplates && popd cp bin/android* $TEMPLATE_DIR/ + rm custom.py fi } -pushd ./godot +pushd $DIR if [ $CLEAN -eq 1 ] then @@ -97,8 +102,8 @@ pushd ./godot popd -strip godot/bin/godo.* -ls -lh godot/bin/ +strip $DIR/bin/godo.* +ls -lh $DIR/bin/ # https://godot-build-options-generator.github.io # scons -j4 platform=linuxbsd target=release_debug tools=yes pulseaudio=no bits=64 warnings=no #custom_modules=../modules -- cgit v1.1-2-g2b99