mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 09:46:02 +08:00
[godot] Restore old build/setup.sh
This commit is contained in:
parent
a3fa4e926f
commit
64c3e9af16
@ -18,13 +18,10 @@ if [ $# -lt 2 ] || [ $# -gt 4 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
branch=${1%/}
|
branch=${1%/}
|
||||||
godot_version=$(echo "$branch" | grep -o '^[0-9]*\.[0-9]*')
|
|
||||||
dev=${2%/}
|
dev=${2%/}
|
||||||
mono=false
|
mono=false
|
||||||
repo=https://github.com/godotengine/godot.git
|
repo=https://github.com/godotengine/godot.git
|
||||||
|
|
||||||
echo "Godot version: $godot_version"
|
|
||||||
|
|
||||||
if [[ $# -eq 3 && "$branch" != 3* ]]; then
|
if [[ $# -eq 3 && "$branch" != 3* ]]; then
|
||||||
mono=${3%/}
|
mono=${3%/}
|
||||||
fi
|
fi
|
||||||
@ -44,16 +41,6 @@ if [ $# -eq 4 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
pushd ..
|
pushd ..
|
||||||
|
|
||||||
echo "--- Cloning GDExtensions"
|
|
||||||
rm -rf godot-cpp
|
|
||||||
git clone https://github.com/godotengine/godot-cpp
|
|
||||||
pushd godot-cpp
|
|
||||||
git submodule update --init
|
|
||||||
git checkout $godot_version
|
|
||||||
popd
|
|
||||||
|
|
||||||
echo "--- Cloning Godot"
|
|
||||||
rm -rf godot
|
rm -rf godot
|
||||||
git clone --depth 1 $repo -b $branch
|
git clone --depth 1 $repo -b $branch
|
||||||
if [ $dev = "true" ]; then
|
if [ $dev = "true" ]; then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user