From 2bb7eb80b710f0adc9f1b152f210764388e3e75e Mon Sep 17 00:00:00 2001 From: Relintai Date: Mon, 10 Jan 2022 13:35:42 +0100 Subject: [PATCH] Set up file size warnings for the make release script. Also silence the zip commands. --- make_release.sh | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/make_release.sh b/make_release.sh index 575a89a0..bcd8b031 100755 --- a/make_release.sh +++ b/make_release.sh @@ -25,24 +25,25 @@ rm -Rf broken_seals${version_snake_cased}_game_source mkdir broken_seals${version_snake_cased}_full_source mkdir broken_seals${version_snake_cased}_game_source -python ../tools/copy_repos.py ../ ./broken_seals${version_snake_cased}_full_source +# 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 python ../tools/copy_repos.py ../game/ ./broken_seals${version_snake_cased}_game_source -zip ../release/broken_seals${version_snake_cased}_android_debug.zip ./broken_seals${version_snake_cased}_android_debug/* -zip ../release/broken_seals${version_snake_cased}_android_release.zip ./broken_seals${version_snake_cased}_android_release/* -zip ../release/broken_seals${version_snake_cased}_javascript.zip ./broken_seals${version_snake_cased}_javascript/* -zip ../release/broken_seals${version_snake_cased}_linux.zip ./broken_seals${version_snake_cased}_linux/* -zip ../release/broken_seals${version_snake_cased}_windows.zip ./broken_seals${version_snake_cased}_windows/* -zip ../release/broken_seals${version_snake_cased}_pi4.zip ./broken_seals${version_snake_cased}_pi4/* +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/* -zip ../release/editor_windows${version_snake_cased}.zip ./godot.bs${version}.windows.opt.tools.64.exe -zip ../release/editor_linux${version_snake_cased}.zip ./godot.bs${version}.x11.opt.tools.64 -zip ../release/editor_pi4${version_snake_cased}.zip ./godot.bs${version}.x11.pi4.opt.tools.32 +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 -zip ../release/export_templates${version_snake_cased}.zip ./export_templates${version_snake_cased}/* +zip -q ../release/export_templates_bs${version_snake_cased}.zip ./export_templates_bs${version_snake_cased}/* -zip -r ../release/broken_seals${version_snake_cased}_full_source.zip ./broken_seals${version_snake_cased}_full_source/* -zip -r ../release/broken_seals${version_snake_cased}_game_source.zip ./broken_seals${version_snake_cased}_game_source/* +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/* cd ..