From 0fc80d5b8b5063fcde3e0d140d67d41ce5f0e018 Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Tue, 10 Dec 2024 16:08:00 +0100 Subject: [PATCH] [godot] No extension editor builds for ios, android, web --- spine-godot/build/build-extension.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/spine-godot/build/build-extension.sh b/spine-godot/build/build-extension.sh index 4574d73ee..799c72a97 100755 --- a/spine-godot/build/build-extension.sh +++ b/spine-godot/build/build-extension.sh @@ -18,7 +18,7 @@ if [ -f "../godot-cpp/dev" ]; then echo "DEV build" fi -if [ $dev == "true" ]; then +if [ $dev == "true" ]; then options="$options dev_build=true" fi @@ -26,18 +26,18 @@ if [ -z $platform ]; then echo "Platform: current" else echo "Platform: $platform" - platform="platform=$platform" + platform="platform=$platform" fi cpus=2 if [ "$OSTYPE" == "msys" ]; then os="windows" - cpus=$NUMBER_OF_PROCESSORS + cpus=$NUMBER_OF_PROCESSORS elif [[ "$OSTYPE" == "darwin"* ]]; then os="macos" - cpus=$(sysctl -n hw.logicalcpu) + cpus=$(sysctl -n hw.logicalcpu) if [ `uname -m` == "arm64" ]; then - echo "Would do Apple Silicon specific setup" + echo "Would do Apple Silicon specific setup" fi else os="linux" @@ -47,7 +47,9 @@ fi echo "CPUS: $cpus" pushd .. -scons -j $cpus $options $platform target=editor +if [ "$platform" != "ios" ] && [ "$platform" != "android" ] && [ "$platform" != "web" ]; then + scons -j $cpus $options $platform target=editor +fi scons -j $cpus $options $platform target=template_debug scons -j $cpus $options $platform target=template_release popd