From 6561c8f48b58877d7721f99078ec3e70d069ba7c Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 20 Feb 2021 22:56:31 +0100 Subject: [PATCH] Added in my utility shell scripts from broken seals. --- export_all.sh | 22 ++++++++++++++++++++++ ged.sh | 6 ++++++ make_release.sh | 34 ++++++++++++++++++++++++++++++++++ play.sh | 6 ++++++ podman_build_all.sh | 34 ++++++++++++++++++++++++++++++++++ 5 files changed, 102 insertions(+) create mode 100755 export_all.sh create mode 100755 ged.sh create mode 100755 make_release.sh create mode 100755 play.sh create mode 100755 podman_build_all.sh diff --git a/export_all.sh b/export_all.sh new file mode 100755 index 0000000..4c49be8 --- /dev/null +++ b/export_all.sh @@ -0,0 +1,22 @@ +#!/bin/bash +set -e + +project_root=$(pwd) + +rm -Rf ./export + +mkdir export +mkdir export/broken_seals_android_release +mkdir export/broken_seals_android_debug +mkdir export/broken_seals_linux +mkdir export/broken_seals_windows +mkdir export/broken_seals_javascript + +./engine/bin/godot.x11.opt.tools.64 --path ./game/ --export-debug Android-Release ${project_root}/export/broken_seals_android_release/broken_seals.apk +./engine/bin/godot.x11.opt.tools.64 --path ./game/ --export-debug Android ${project_root}/export/broken_seals_android_debug/broken_seals_debug.apk +./engine/bin/godot.x11.opt.tools.64 --path ./game/ --export Linux/X11 ${project_root}/export/broken_seals_linux/broken_seals_x11 +./engine/bin/godot.x11.opt.tools.64 --path ./game/ --export "Windows Desktop" ${project_root}/export/broken_seals_windows/broken_seals.exe +./engine/bin/godot.x11.opt.tools.64 --path ./game/ --export HTML5 ${project_root}/export/broken_seals_javascript/broken_seals.html + +cp ./engine/bin/godot.windows.opt.tools.64.exe ${project_root}/export/godot.bs.windows.opt.tools.64.exe +cp ./engine/bin/godot.x11.opt.tools.64 ${project_root}/export/godot.bs.x11.opt.tools.64 \ No newline at end of file diff --git a/ged.sh b/ged.sh new file mode 100755 index 0000000..ae20bae --- /dev/null +++ b/ged.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +cp -u ./engine/bin/godot.x11.opt.tools.64 ./engine/bin/run.godot.x11.opt.tools.64 + +export LD_LIBRARY_PATH=`pwd`/engine/bin/ +./engine/bin/run.godot.x11.opt.tools.64 -v -e --path ./game/ diff --git a/make_release.sh b/make_release.sh new file mode 100755 index 0000000..89181bd --- /dev/null +++ b/make_release.sh @@ -0,0 +1,34 @@ +#!/bin/bash +set -e + +project_root=$(pwd) + +rm -Rf ./release + +mkdir release + +cd export + +rm -Rf broken_seals_full_source +rm -Rf broken_seals_game_source + +mkdir broken_seals_full_source +mkdir broken_seals_game_source + +python ../tools/copy_repos.py ../ ./broken_seals_full_source +python ../tools/copy_repos.py ../game/ ./broken_seals_game_source + +zip ../release/broken_seals_android_debug.zip ./broken_seals_android_debug/* +zip ../release/broken_seals_android_release.zip ./broken_seals_android_release/* +zip ../release/broken_seals_javascript.zip ./broken_seals_javascript/* +zip ../release/broken_seals_linux.zip ./broken_seals_linux/* +zip ../release/broken_seals_windows.zip ./broken_seals_windows/* + +zip ../release/editor_windows.zip ./godot.bs.windows.opt.tools.64.exe +zip ../release/editor_linux.zip ./godot.bs.x11.opt.tools.64 + +zip -r ../release/broken_seals_full_source.zip ./broken_seals_full_source/* +zip -r ../release/broken_seals_game_source.zip ./broken_seals_game_source/* + +cd .. + diff --git a/play.sh b/play.sh new file mode 100755 index 0000000..6f916f0 --- /dev/null +++ b/play.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +cp -u ./engine/bin/godot.x11.opt.tools.64 ./engine/bin/run.godot.x11.opt.tools.64 + +export LD_LIBRARY_PATH=`pwd`/engine/bin/ +./engine/bin/run.godot.x11.opt.tools.64 -v --path ./game/ diff --git a/podman_build_all.sh b/podman_build_all.sh new file mode 100755 index 0000000..b8f7a5e --- /dev/null +++ b/podman_build_all.sh @@ -0,0 +1,34 @@ +#!/bin/bash +set -e + +podman=`which podman || true` + +if [ -z $podman ]; then + echo "podman needs to be in PATH for this script to work." + exit 1 +fi + +project_root=$(pwd)/ +img_version=bs + +mkdir -p logs + +$podman run -v ${project_root}:/root/project -w /root/project godot-windows:${img_version} scons bew -j4 . 2>&1 | tee logs/bew.log +$podman run -v ${project_root}:/root/project -w /root/project godot-windows:${img_version} scons bewd -j4 . 2>&1 | tee logs/bewd.log +$podman run -v ${project_root}:/root/project -w /root/project godot-windows:${img_version} scons bw -j4 . 2>&1 | tee logs/bw.log +$podman run -v ${project_root}:/root/project -w /root/project godot-windows:${img_version} scons bwr -j4 . 2>&1 | tee logs/bwr.log + +$podman run -v ${project_root}:/root/project -w /root/project godot-linux:${img_version} scons bel -j4 . 2>&1 | tee logs/bel.log +$podman run -v ${project_root}:/root/project -w /root/project godot-linux:${img_version} scons beld -j4 . 2>&1 | tee logs/beld.log +$podman run -v ${project_root}:/root/project -w /root/project godot-linux:${img_version} scons bl -j4 . 2>&1 | tee logs/bl.log +$podman run -v ${project_root}:/root/project -w /root/project godot-linux:${img_version} scons blr -j4 . 2>&1 | tee logs/blr.log + + +$podman run -v ${project_root}:/root/project -w /root/project godot-javascript:${img_version} scons bj -j4 . 2>&1 | tee logs/bj.log +$podman run -v ${project_root}:/root/project -w /root/project godot-javascript:${img_version} scons bjr -j4 . 2>&1 | tee logs/bjr.log + +$podman run -v ${project_root}:/root/project -w /root/project godot-android:${img_version} scons ba -j4 . 2>&1 | tee logs/ba.log +$podman run -v ${project_root}:/root/project -w /root/project godot-android:${img_version} scons bar -j4 . 2>&1 | tee logs/bar.log + +# $podman run -v ${project_root}:/root/project -i -w /root/project -t godot-windows:${img_version} scons bew -j4 +