mirror of
https://github.com/godotengine/godot-build-scripts.git
synced 2026-01-04 02:09:44 +03:00
27 lines
659 B
Bash
Executable File
27 lines
659 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
if [ -z "$1" ] || [ -z "$2" ]; then
|
|
echo "usage: $0 <version> <file version>"
|
|
echo " like : $0 3.0.3.rc1 3.0.3-rc1"
|
|
exit 1
|
|
fi
|
|
|
|
VERSION=$1
|
|
FILE_VERSION=$2
|
|
MONO_VERSION=$3
|
|
|
|
echo "$VERSION" > templates/version.txt
|
|
|
|
mkdir -p release-${FILE_VERSION}
|
|
rm -f release-${FILE_VERSION}/*templates.tpz
|
|
zip -q -9 -r -D release-${FILE_VERSION}/Godot_v${FILE_VERSION}_export_templates.tpz templates
|
|
|
|
mkdir -p mono/release-${FILE_VERSION}
|
|
rm -f mono/release-${FILE_VERSION}/*templates.tpz
|
|
cd mono
|
|
echo "$VERSION".mono > templates/version.txt
|
|
zip -q -9 -r -D release-${FILE_VERSION}/Godot_v${FILE_VERSION}_mono_export_templates.tpz templates
|
|
cd ..
|