diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2022-07-16 09:11:31 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2022-07-16 09:11:31 +0200 |
commit | 0a1e1f794cc1ddfafc90debbb0dc825f5ca71dd6 (patch) | |
tree | ac44e4315dd73d57046ae40fb5a7ab63e1f8939f /godot-update | |
parent | 34d6a2f72bcd5d9ae7b38e3015ce60090f9576fb (diff) | |
download | bin-0a1e1f794cc1ddfafc90debbb0dc825f5ca71dd6.zip bin-0a1e1f794cc1ddfafc90debbb0dc825f5ca71dd6.tar.gz |
godot-update : add DIR, use custom.py for templates only
Diffstat (limited to 'godot-update')
-rwxr-xr-x | godot-update | 13 |
1 files 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 |