Added version number support for the make_release script.

This commit is contained in:
Relintai 2022-01-10 10:51:31 +01:00
parent 7be18249a7
commit c0617cf7c2

View File

@ -1,6 +1,16 @@
#!/bin/bash #!/bin/bash
set -e set -e
version=""
version_snake_cased=""
if [ ! -z $1 ]; then
version="."
version+=$1
version_snake_cased=${version//./_}
fi
project_root=$(pwd) project_root=$(pwd)
rm -Rf ./release rm -Rf ./release
@ -9,30 +19,30 @@ mkdir release
cd export cd export
rm -Rf broken_seals_full_source rm -Rf broken_seals${version_snake_cased}_full_source
rm -Rf broken_seals_game_source rm -Rf broken_seals${version_snake_cased}_game_source
mkdir broken_seals_full_source mkdir broken_seals${version_snake_cased}_full_source
mkdir broken_seals_game_source mkdir broken_seals${version_snake_cased}_game_source
python ../tools/copy_repos.py ../ ./broken_seals_full_source python ../tools/copy_repos.py ../ ./broken_seals${version_snake_cased}_full_source
python ../tools/copy_repos.py ../game/ ./broken_seals_game_source python ../tools/copy_repos.py ../game/ ./broken_seals${version_snake_cased}_game_source
zip ../release/broken_seals_android_debug.zip ./broken_seals_android_debug/* zip ../release/broken_seals${version_snake_cased}_android_debug.zip ./broken_seals${version_snake_cased}_android_debug/*
zip ../release/broken_seals_android_release.zip ./broken_seals_android_release/* zip ../release/broken_seals${version_snake_cased}_android_release.zip ./broken_seals${version_snake_cased}_android_release/*
zip ../release/broken_seals_javascript.zip ./broken_seals_javascript/* zip ../release/broken_seals${version_snake_cased}_javascript.zip ./broken_seals${version_snake_cased}_javascript/*
zip ../release/broken_seals_linux.zip ./broken_seals_linux/* zip ../release/broken_seals${version_snake_cased}_linux.zip ./broken_seals${version_snake_cased}_linux/*
zip ../release/broken_seals_windows.zip ./broken_seals_windows/* zip ../release/broken_seals${version_snake_cased}_windows.zip ./broken_seals${version_snake_cased}_windows/*
zip ../release/broken_seals_pi4.zip ./broken_seals_pi4/* zip ../release/broken_seals${version_snake_cased}_pi4.zip ./broken_seals${version_snake_cased}_pi4/*
zip ../release/editor_windows.zip ./godot.bs.windows.opt.tools.64.exe zip ../release/editor_windows${version_snake_cased}.zip ./godot.bs${version}.windows.opt.tools.64.exe
zip ../release/editor_linux.zip ./godot.bs.x11.opt.tools.64 zip ../release/editor_linux${version_snake_cased}.zip ./godot.bs${version}.x11.opt.tools.64
zip ../release/editor_pi4.zip ./godot.bs.x11.pi4.opt.tools.32 zip ../release/editor_pi4${version_snake_cased}.zip ./godot.bs${version}.x11.pi4.opt.tools.32
zip ../release/export_templates.zip ./export_templates/* zip ../release/export_templates${version_snake_cased}.zip ./export_templates${version_snake_cased}/*
zip -r ../release/broken_seals_full_source.zip ./broken_seals_full_source/* zip -r ../release/broken_seals${version_snake_cased}_full_source.zip ./broken_seals${version_snake_cased}_full_source/*
zip -r ../release/broken_seals_game_source.zip ./broken_seals_game_source/* zip -r ../release/broken_seals${version_snake_cased}_game_source.zip ./broken_seals${version_snake_cased}_game_source/*
cd .. cd ..