mirror of
https://github.com/godotengine/godot-build-scripts.git
synced 2026-01-04 02:09:44 +03:00
- Drop unused mandatory -t argument in build.sh. - Remove infinite retries for OSX and iOS, builds now seem to succeed right away and it prevents exiting the script. - Factor out iOS SDK version. - Make build order consistent in build.sh and build-release.sh - Removing trailing whitespace.
63 lines
2.1 KiB
Bash
Executable File
63 lines
2.1 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
export BUILD_NAME=official
|
|
export SCONS="scons -j16 verbose=yes warnings=no progress=no"
|
|
export OPTIONS="builtin_libpng=yes builtin_openssl=yes builtin_zlib=yes debug_symbols=no use_static_cpp=yes use_lto=yes"
|
|
export OPTIONS_MONO="module_mono_enabled=yes mono_static=yes"
|
|
export TERM=xterm
|
|
export MONO32_PREFIX=/root/dependencies/mono-32
|
|
export MONO64_PREFIX=/root/dependencies/mono-64
|
|
|
|
rm -rf godot
|
|
mkdir godot
|
|
cd godot
|
|
tar xf /root/godot.tar.gz --strip-components=1
|
|
|
|
cp /root/mono-glue/*.cpp modules/mono/glue
|
|
|
|
$SCONS platform=windows bits=32 $OPTIONS tools=yes target=release_debug
|
|
mkdir -p /root/out/x86/tools
|
|
cp -rvp bin/* /root/out/x86/tools
|
|
rm -rf bin
|
|
|
|
$SCONS platform=windows bits=32 $OPTIONS tools=no target=release_debug
|
|
$SCONS platform=windows bits=32 $OPTIONS tools=no target=release
|
|
mkdir -p /root/out/x86/templates
|
|
cp -rvp bin/* /root/out/x86/templates
|
|
rm -rf bin
|
|
|
|
$SCONS platform=windows bits=32 $OPTIONS $OPTIONS_MONO tools=yes target=release_debug copy_mono_root=yes
|
|
mkdir -p /root/out/x86/tools-mono
|
|
cp -rvp bin/* /root/out/x86/tools-mono
|
|
rm -rf bin
|
|
|
|
$SCONS platform=windows bits=32 $OPTIONS $OPTIONS_MONO tools=no target=release_debug
|
|
$SCONS platform=windows bits=32 $OPTIONS $OPTIONS_MONO tools=no target=release
|
|
mkdir -p /root/out/x86/templates-mono
|
|
cp -rvp bin/* /root/out/x86/templates-mono
|
|
rm -rf bin
|
|
|
|
$SCONS platform=windows bits=64 $OPTIONS tools=yes target=release_debug
|
|
mkdir -p /root/out/x64/tools
|
|
cp -rvp bin/* /root/out/x64/tools
|
|
rm -rf bin
|
|
|
|
$SCONS platform=windows bits=64 $OPTIONS tools=no target=release_debug
|
|
$SCONS platform=windows bits=64 $OPTIONS tools=no target=release
|
|
mkdir -p /root/out/x64/templates
|
|
cp -rvp bin/* /root/out/x64/templates
|
|
rm -rf bin
|
|
|
|
$SCONS platform=windows bits=64 $OPTIONS $OPTIONS_MONO tools=yes target=release_debug copy_mono_root=yes
|
|
mkdir -p /root/out/x64/tools-mono
|
|
cp -rvp bin/* /root/out/x64/tools-mono
|
|
rm -rf bin
|
|
|
|
$SCONS platform=windows bits=64 $OPTIONS $OPTIONS_MONO tools=no target=release_debug
|
|
$SCONS platform=windows bits=64 $OPTIONS $OPTIONS_MONO tools=no target=release
|
|
mkdir -p /root/out/x64/templates-mono
|
|
cp -rvp bin/* /root/out/x64/templates-mono
|
|
rm -rf bin
|