Don't include the shaderlib in the application anymore, instead distribute a zip file with each release

This commit is contained in:
ChaoticByte 2025-02-04 18:59:57 +01:00
parent 1ee3088cce
commit da1bd6a58a
No known key found for this signature in database
11 changed files with 21 additions and 24 deletions

14
dist.sh
View file

@ -10,13 +10,19 @@ VERSION="$(godot --headless --no-header -s tools/get_version.gd)"
godot --headless --export-release "Linux/X11" "dist/Fragmented-${VERSION}.x86_64"
log Packing shaderlib
ZIP_PATH_SHADERLIB=$(realpath "dist/Fragmented-${VERSION}_shaderlib.zip")
zip -r "${ZIP_PATH_SHADERLIB}" shaderlib/
log Packing project template
ZIP_PATH=$(realpath "dist/Fragmented-${VERSION}_project_template.zip")
ZIP_PATH_PROJECT_TEMPLATE=$(realpath "dist/Fragmented-${VERSION}_project_template.zip")
rm -f "${ZIP_PATH}"
zip -r "${ZIP_PATH}" shaderlib/
rm -f "${ZIP_PATH_PROJECT_TEMPLATE}"
(
cd examples/
zip -r "${ZIP_PATH}" *
mv project.godot_ project.godot && trap "mv project.godot project.godot_" EXIT
zip -r "${ZIP_PATH_PROJECT_TEMPLATE}" *
)