Add dist.sh script to automatically build and create project template, Update README

This commit is contained in:
ChaoticByte 2025-02-03 20:29:47 +01:00
parent 5a8a6e4c61
commit 6bb6b8b768
No known key found for this signature in database
7 changed files with 64 additions and 6 deletions

22
dist.sh Executable file
View file

@ -0,0 +1,22 @@
set -e
function log {
echo -e "\033[1;36m***** $@ *****\033[0m"
}
log Building application
VERSION="$(godot --headless --no-header -s tools/get_version.gd)"
godot --headless --export-release "Linux/X11" "dist/Fragmented-${VERSION}.x86_64"
log Packing project template
ZIP_PATH=$(realpath "dist/Fragmented-${VERSION}_project_template.zip")
rm -f "${ZIP_PATH}"
zip -r "${ZIP_PATH}" shaderlib/
(
cd examples/
zip -r "${ZIP_PATH}" *
)