Add dist.sh script to automatically build and create project template, Update README
This commit is contained in:
parent
5a8a6e4c61
commit
6bb6b8b768
7 changed files with 64 additions and 6 deletions
22
dist.sh
Executable file
22
dist.sh
Executable 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}" *
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue