2020-09-03 14:49:11 +02:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
2022-01-10 10:51:31 +01:00
|
|
|
version=""
|
|
|
|
version_snake_cased=""
|
|
|
|
|
|
|
|
if [ ! -z $1 ]; then
|
|
|
|
version="."
|
|
|
|
version+=$1
|
|
|
|
|
|
|
|
version_snake_cased=${version//./_}
|
|
|
|
fi
|
|
|
|
|
2020-09-03 14:49:11 +02:00
|
|
|
project_root=$(pwd)
|
|
|
|
|
|
|
|
rm -Rf ./release
|
|
|
|
|
|
|
|
mkdir release
|
|
|
|
|
|
|
|
cd export
|
|
|
|
|
2022-01-10 10:51:31 +01:00
|
|
|
rm -Rf broken_seals${version_snake_cased}_full_source
|
|
|
|
rm -Rf broken_seals${version_snake_cased}_game_source
|
2020-09-03 14:49:11 +02:00
|
|
|
|
2022-01-10 10:51:31 +01:00
|
|
|
mkdir broken_seals${version_snake_cased}_full_source
|
|
|
|
mkdir broken_seals${version_snake_cased}_game_source
|
2020-09-03 14:49:11 +02:00
|
|
|
|
2022-01-10 13:35:42 +01:00
|
|
|
# Warn if a file is over a megabyte. Used to catch big temporary files that would slip through outherwise
|
|
|
|
python ../tools/copy_repos.py ../ ./broken_seals${version_snake_cased}_full_source 1048576
|
2022-01-10 10:51:31 +01:00
|
|
|
python ../tools/copy_repos.py ../game/ ./broken_seals${version_snake_cased}_game_source
|
2020-09-03 14:49:11 +02:00
|
|
|
|
2022-01-10 13:35:42 +01:00
|
|
|
zip -q ../release/broken_seals${version_snake_cased}_android_debug.zip ./broken_seals${version_snake_cased}_android_debug/*
|
|
|
|
zip -q ../release/broken_seals${version_snake_cased}_android_release.zip ./broken_seals${version_snake_cased}_android_release/*
|
|
|
|
zip -q ../release/broken_seals${version_snake_cased}_javascript.zip ./broken_seals${version_snake_cased}_javascript/*
|
|
|
|
zip -q ../release/broken_seals${version_snake_cased}_linux.zip ./broken_seals${version_snake_cased}_linux/*
|
|
|
|
zip -q ../release/broken_seals${version_snake_cased}_windows.zip ./broken_seals${version_snake_cased}_windows/*
|
|
|
|
zip -q ../release/broken_seals${version_snake_cased}_pi4.zip ./broken_seals${version_snake_cased}_pi4/*
|
2020-09-03 14:49:11 +02:00
|
|
|
|
2022-01-10 13:35:42 +01:00
|
|
|
zip -q ../release/editor_windows_bs${version_snake_cased}.zip ./godot.bs${version}.windows.opt.tools.64.exe
|
|
|
|
zip -q ../release/editor_linux_bs${version_snake_cased}.zip ./godot.bs${version}.x11.opt.tools.64
|
|
|
|
zip -q ../release/editor_pi4_bs${version_snake_cased}.zip ./godot.bs${version}.x11.pi4.opt.tools.32
|
2021-04-24 09:25:37 +02:00
|
|
|
|
2022-01-10 13:35:42 +01:00
|
|
|
zip -q ../release/export_templates_bs${version_snake_cased}.zip ./export_templates_bs${version_snake_cased}/*
|
2020-09-03 14:49:11 +02:00
|
|
|
|
2022-01-10 13:35:42 +01:00
|
|
|
zip -q -r ../release/broken_seals${version_snake_cased}_full_source.zip ./broken_seals${version_snake_cased}_full_source/*
|
|
|
|
zip -q -r ../release/broken_seals${version_snake_cased}_game_source.zip ./broken_seals${version_snake_cased}_game_source/*
|
2020-09-03 14:49:11 +02:00
|
|
|
|
|
|
|
cd ..
|
|
|
|
|