mirror of
https://github.com/godotengine/godot-build-scripts.git
synced 2026-01-01 09:48:47 +03:00
Compare commits
74 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5bf3bab772 | ||
|
|
d381d33b8e | ||
|
|
dea7aa483e | ||
|
|
9da8d72dfe | ||
|
|
4e25acea96 | ||
|
|
f6ddb4e192 | ||
|
|
2bdb21c164 | ||
|
|
a94d978de6 | ||
|
|
faba7ebc50 | ||
|
|
9f2d00d177 | ||
|
|
ba0aa611d5 | ||
|
|
2e84f0b015 | ||
|
|
162cced016 | ||
|
|
01bf08cd9b | ||
|
|
2d656c918b | ||
|
|
39d2591051 | ||
|
|
9d80bcad67 | ||
|
|
78d64f285a | ||
|
|
e0d7b61e0e | ||
|
|
55373a69fb | ||
|
|
e4c94535c7 | ||
|
|
236efef7aa | ||
|
|
365596d3f0 | ||
|
|
38be71ef26 | ||
|
|
6e1556cf2b | ||
|
|
8d9ed90058 | ||
|
|
2e2fa65c67 | ||
|
|
f40716e53e | ||
|
|
33c8511a37 | ||
|
|
f3a5097159 | ||
|
|
c371cddcb5 | ||
|
|
a5d0f200b2 | ||
|
|
e0da42acd5 | ||
|
|
6499c248c1 | ||
|
|
abe22bbfcb | ||
|
|
5bc7435255 | ||
|
|
2190e23987 | ||
|
|
37ecf63e62 | ||
|
|
0a5547b12c | ||
|
|
02510df163 | ||
|
|
21da21455b | ||
|
|
1dddb1fb3a | ||
|
|
7024ac71f9 | ||
|
|
6bee8dec2e | ||
|
|
cab5d6f3c8 | ||
|
|
8eae1668f5 | ||
|
|
74cc8c712c | ||
|
|
0d85e09ebd | ||
|
|
1bd06975a9 | ||
|
|
37d7666b7b | ||
|
|
fe6e7b1e4e | ||
|
|
744b520910 | ||
|
|
463b957716 | ||
|
|
c44015dcec | ||
|
|
9ddda05e01 | ||
|
|
046ad85d00 | ||
|
|
279085ccce | ||
|
|
4797f217f0 | ||
|
|
964f9ca78f | ||
|
|
7a413ea5ec | ||
|
|
4b05de4339 | ||
|
|
3a3777b4db | ||
|
|
e365a856d3 | ||
|
|
5167633b6a | ||
|
|
5a7ffb3722 | ||
|
|
4d8e6dcb49 | ||
|
|
7b2cf596dc | ||
|
|
313cd37206 | ||
|
|
c53fb590aa | ||
|
|
9176967e98 | ||
|
|
d93b0785a8 | ||
|
|
4e6b7462b6 | ||
|
|
ee823e5177 | ||
|
|
0341022b36 |
6
.gitignore
vendored
6
.gitignore
vendored
@@ -4,11 +4,15 @@ config.sh
|
||||
|
||||
# Generated by build scripts
|
||||
angle/
|
||||
deps/
|
||||
git/
|
||||
mono-glue/
|
||||
godot.tar.gz
|
||||
godot*.tar.gz
|
||||
angle.7z
|
||||
|
||||
# Output
|
||||
out/
|
||||
releases/
|
||||
sha512sums/
|
||||
tmp/
|
||||
web/
|
||||
|
||||
@@ -21,14 +21,11 @@ this in a simple and user-friendly interface.
|
||||
containers.
|
||||
- Build with `build.sh` (check `--help` for usage).
|
||||
- Package binaries with `build-release.sh` (check `--help` for usage).
|
||||
- Build templates .tpz with `build-templates.sh` (check `--help` for
|
||||
usage).
|
||||
|
||||
Example that builds Godot 3.2-stable Classical (not Mono):
|
||||
```
|
||||
./build.sh -v 3.2-stable -g 3.2-stable -b classical
|
||||
./build-release.sh -v 3.2-stable -b classical
|
||||
./build-templates.sh -v 3.2-stable -t 3.2.stable -b classical
|
||||
./build-release.sh -v 3.2-stable -t 3.2.stable -b classical
|
||||
```
|
||||
|
||||
Again, this is intended for release managers and usability is not the
|
||||
|
||||
@@ -4,12 +4,13 @@ set -e
|
||||
|
||||
# Config
|
||||
|
||||
export BUILD_NAME=official
|
||||
export SCONS="scons -j${NUM_CORES} verbose=yes warnings=no progress=no"
|
||||
export OPTIONS="debug_symbols=no"
|
||||
export OPTIONS="production=yes"
|
||||
export OPTIONS_MONO="module_mono_enabled=yes mono_static=no"
|
||||
export TERM=xterm
|
||||
|
||||
${ANDROID_SDK_ROOT}/cmdline-tools/bin/sdkmanager --sdk_root="${ANDROID_SDK_ROOT}" 'platforms;android-30'
|
||||
|
||||
rm -rf godot
|
||||
mkdir godot
|
||||
cd godot
|
||||
@@ -40,6 +41,7 @@ if [ "${CLASSICAL}" == "1" ]; then
|
||||
cp bin/android_source.zip /root/out/templates
|
||||
cp bin/android_debug.apk /root/out/templates/android_debug.apk
|
||||
cp bin/android_release.apk /root/out/templates/android_release.apk
|
||||
cp bin/godot-lib.release.aar /root/out/templates/godot-lib.release.aar
|
||||
fi
|
||||
|
||||
# Mono
|
||||
@@ -71,6 +73,7 @@ if [ "${MONO}" == "1" ]; then
|
||||
cp bin/android_source.zip /root/out/templates-mono
|
||||
cp bin/android_debug.apk /root/out/templates-mono/android_debug.apk
|
||||
cp bin/android_release.apk /root/out/templates-mono/android_release.apk
|
||||
cp bin/godot-lib.release.aar /root/out/templates-mono/godot-lib.release.aar
|
||||
|
||||
mkdir -p /root/out/templates-mono/bcl
|
||||
cp -r /root/mono-installs/android-bcl/* /root/out/templates-mono/bcl/
|
||||
|
||||
@@ -4,13 +4,15 @@ set -e
|
||||
|
||||
# Config
|
||||
|
||||
export BUILD_NAME=official
|
||||
export SCONS="scons -j${NUM_CORES} verbose=yes warnings=no progress=no"
|
||||
export IOS_SDK="12.4"
|
||||
export OPTIONS="osxcross_sdk=darwin18 debug_symbols=no"
|
||||
# Keep LTO disabled for iOS - it works but it makes linking apps on deploy very slow,
|
||||
# which is seen as a regression in the current workflow.
|
||||
export OPTIONS="production=yes use_lto=no"
|
||||
export OPTIONS_MONO="module_mono_enabled=yes mono_static=yes"
|
||||
export TERM=xterm
|
||||
export OSXCROSS_IOS=not_nothing
|
||||
|
||||
export IOS_SDK="14.4"
|
||||
export IOS_LIPO="/root/ioscross/arm64/bin/arm-apple-darwin11-lipo"
|
||||
|
||||
rm -rf godot
|
||||
mkdir godot
|
||||
@@ -22,28 +24,56 @@ tar xf /root/godot.tar.gz --strip-components=1
|
||||
if [ "${CLASSICAL}" == "1" ]; then
|
||||
echo "Starting classical build for iOS..."
|
||||
|
||||
$SCONS platform=iphone $OPTIONS arch=arm64 tools=no target=release_debug IPHONESDK="/root/ioscross/arm64/SDK/iPhoneOS${IOS_SDK}.sdk" IPHONEPATH="/root/ioscross/arm64/" ios_triple="arm-apple-darwin11-"
|
||||
$SCONS platform=iphone $OPTIONS arch=arm64 tools=no target=release IPHONESDK="/root/ioscross/arm64/SDK/iPhoneOS${IOS_SDK}.sdk" IPHONEPATH="/root/ioscross/arm64/" ios_triple="arm-apple-darwin11-"
|
||||
$SCONS platform=iphone $OPTIONS arch=arm64 tools=no target=release_debug \
|
||||
IPHONESDK="/root/ioscross/arm64/SDK/iPhoneOS${IOS_SDK}.sdk" IPHONEPATH="/root/ioscross/arm64/" ios_triple="arm-apple-darwin11-"
|
||||
$SCONS platform=iphone $OPTIONS arch=arm64 tools=no target=release \
|
||||
IPHONESDK="/root/ioscross/arm64/SDK/iPhoneOS${IOS_SDK}.sdk" IPHONEPATH="/root/ioscross/arm64/" ios_triple="arm-apple-darwin11-"
|
||||
|
||||
$SCONS platform=iphone $OPTIONS arch=x86_64 tools=no target=release_debug IPHONESDK="/root/ioscross/x86_64/SDK/iPhoneOS${IOS_SDK}.sdk" IPHONEPATH="/root/ioscross/x86_64/" ios_triple="x86_64-apple-darwin11-"
|
||||
$SCONS platform=iphone $OPTIONS arch=x86_64 tools=no target=release IPHONESDK="/root/ioscross/x86_64/SDK/iPhoneOS${IOS_SDK}.sdk" IPHONEPATH="/root/ioscross/x86_64/" ios_triple="x86_64-apple-darwin11-"
|
||||
$SCONS platform=iphone $OPTIONS arch=x86_64 tools=no target=release_debug \
|
||||
IPHONESDK="/root/ioscross/x86_64/SDK/iPhoneOS${IOS_SDK}.sdk" IPHONEPATH="/root/ioscross/x86_64/" ios_triple="x86_64-apple-darwin11-"
|
||||
$SCONS platform=iphone $OPTIONS arch=x86_64 tools=no target=release \
|
||||
IPHONESDK="/root/ioscross/x86_64/SDK/iPhoneOS${IOS_SDK}.sdk" IPHONEPATH="/root/ioscross/x86_64/" ios_triple="x86_64-apple-darwin11-"
|
||||
|
||||
/root/ioscross/arm64/bin/arm-apple-darwin11-lipo -create bin/libgodot.iphone.opt.arm64.a bin/libgodot.iphone.opt.x86_64.a -output /root/out/libgodot.iphone.opt.fat
|
||||
/root/ioscross/arm64/bin/arm-apple-darwin11-lipo -create bin/libgodot.iphone.opt.debug.arm64.a bin/libgodot.iphone.opt.debug.x86_64.a -output /root/out/libgodot.iphone.opt.debug.fat
|
||||
|
||||
/root/ioscross/arm64/bin/arm-apple-darwin11-lipo -create bin/libgodot_arkit_module.iphone.opt.arm64.a bin/libgodot_arkit_module.iphone.opt.x86_64.a -output /root/out/libgodot_arkit_module.iphone.opt.fat
|
||||
/root/ioscross/arm64/bin/arm-apple-darwin11-lipo -create bin/libgodot_arkit_module.iphone.opt.debug.arm64.a bin/libgodot_arkit_module.iphone.opt.debug.x86_64.a -output /root/out/libgodot_arkit_module.iphone.opt.debug.fat
|
||||
|
||||
/root/ioscross/arm64/bin/arm-apple-darwin11-lipo -create bin/libgodot_camera_module.iphone.opt.arm64.a bin/libgodot_camera_module.iphone.opt.x86_64.a -output /root/out/libgodot_camera_module.iphone.opt.fat
|
||||
/root/ioscross/arm64/bin/arm-apple-darwin11-lipo -create bin/libgodot_camera_module.iphone.opt.debug.arm64.a bin/libgodot_camera_module.iphone.opt.debug.x86_64.a -output /root/out/libgodot_camera_module.iphone.opt.debug.fat
|
||||
mkdir -p /root/out/templates
|
||||
$IOS_LIPO -create bin/libgodot.iphone.opt.arm64.a bin/libgodot.iphone.opt.x86_64.a -output /root/out/templates/libgodot.iphone.opt.fat
|
||||
$IOS_LIPO -create bin/libgodot.iphone.opt.debug.arm64.a bin/libgodot.iphone.opt.debug.x86_64.a -output /root/out/templates/libgodot.iphone.opt.debug.fat
|
||||
fi
|
||||
|
||||
# Mono
|
||||
|
||||
if [ "${MONO}" == "1" ]; then
|
||||
echo "No Mono support for iOS yet."
|
||||
#cp /root/mono-glue/*.cpp modules/mono/glue/
|
||||
#cp -r /root/mono-glue/Managed/Generated modules/mono/glue/Managed/
|
||||
echo "Starting Mono build for iOS..."
|
||||
|
||||
cp /root/mono-glue/*.cpp modules/mono/glue/
|
||||
cp -r /root/mono-glue/GodotSharp/GodotSharp/Generated modules/mono/glue/GodotSharp/GodotSharp/
|
||||
cp -r /root/mono-glue/GodotSharp/GodotSharpEditor/Generated modules/mono/glue/GodotSharp/GodotSharpEditor/
|
||||
|
||||
$SCONS platform=iphone $OPTIONS $OPTIONS_MONO arch=arm64 mono_prefix=/root/mono-installs/ios-arm64-release tools=no target=release_debug \
|
||||
IPHONESDK="/root/ioscross/arm64/SDK/iPhoneOS${IOS_SDK}.sdk" IPHONEPATH="/root/ioscross/arm64/" ios_triple="arm-apple-darwin11-"
|
||||
$SCONS platform=iphone $OPTIONS $OPTIONS_MONO arch=arm64 mono_prefix=/root/mono-installs/ios-arm64-release tools=no target=release \
|
||||
IPHONESDK="/root/ioscross/arm64/SDK/iPhoneOS${IOS_SDK}.sdk" IPHONEPATH="/root/ioscross/arm64/" ios_triple="arm-apple-darwin11-"
|
||||
|
||||
$SCONS platform=iphone $OPTIONS $OPTIONS_MONO arch=x86_64 mono_prefix=/root/mono-installs/ios-x86_64-release tools=no target=release_debug \
|
||||
IPHONESDK="/root/ioscross/x86_64/SDK/iPhoneOS${IOS_SDK}.sdk" IPHONEPATH="/root/ioscross/x86_64/" ios_triple="x86_64-apple-darwin11-"
|
||||
$SCONS platform=iphone $OPTIONS $OPTIONS_MONO arch=x86_64 mono_prefix=/root/mono-installs/ios-x86_64-release tools=no target=release \
|
||||
IPHONESDK="/root/ioscross/x86_64/SDK/iPhoneOS${IOS_SDK}.sdk" IPHONEPATH="/root/ioscross/x86_64/" ios_triple="x86_64-apple-darwin11-"
|
||||
|
||||
mkdir -p /root/out/templates-mono
|
||||
$IOS_LIPO -create bin/libgodot.iphone.opt.arm64.a bin/libgodot.iphone.opt.x86_64.a -output /root/out/templates-mono/libgodot.iphone.opt.fat
|
||||
$IOS_LIPO -create bin/libgodot.iphone.opt.debug.arm64.a bin/libgodot.iphone.opt.debug.x86_64.a -output /root/out/templates-mono/libgodot.iphone.opt.debug.fat
|
||||
|
||||
mkdir -p /root/out/templates-mono/iphone-mono-libs
|
||||
$IOS_LIPO -create bin/libmonosgen-2.0.iphone.arm64.a bin/libmonosgen-2.0.iphone.x86_64.a -output /root/out/templates-mono/iphone-mono-libs/libmonosgen-2.0.iphone.fat.a
|
||||
$IOS_LIPO -create bin/libmono-native.iphone.arm64.a bin/libmono-native.iphone.x86_64.a -output /root/out/templates-mono/iphone-mono-libs/libmono-native.iphone.fat.a
|
||||
$IOS_LIPO -create bin/libmono-profiler-log.iphone.arm64.a bin/libmono-profiler-log.iphone.x86_64.a -output /root/out/templates-mono/iphone-mono-libs/libmono-profiler-log.iphone.fat.a
|
||||
|
||||
# The Mono libraries for the interpreter are not available for simulator builds
|
||||
$IOS_LIPO -create bin/libmono-ee-interp.iphone.arm64.a -output /root/out/templates-mono/iphone-mono-libs/libmono-ee-interp.iphone.fat.a
|
||||
$IOS_LIPO -create bin/libmono-icall-table.iphone.arm64.a -output /root/out/templates-mono/iphone-mono-libs/libmono-icall-table.iphone.fat.a
|
||||
$IOS_LIPO -create bin/libmono-ilgen.iphone.arm64.a -output /root/out/templates-mono/iphone-mono-libs/libmono-ilgen.iphone.fat.a
|
||||
|
||||
mkdir -p /root/out/templates-mono/bcl
|
||||
cp -r /root/mono-installs/ios-bcl/* /root/out/templates-mono/bcl
|
||||
fi
|
||||
|
||||
echo "iOS build successful"
|
||||
|
||||
@@ -4,10 +4,9 @@ set -e
|
||||
|
||||
# Config
|
||||
|
||||
export BUILD_NAME=official
|
||||
export SCONS="scons -j${NUM_CORES} verbose=yes warnings=no progress=no"
|
||||
export OPTIONS="debug_symbols=no"
|
||||
export OPTIONS_MONO="module_mono_enabled=yes mono_static=yes mono_prefix=/root/mono-installs/wasm-runtime-release"
|
||||
export OPTIONS="production=yes"
|
||||
export OPTIONS_MONO="module_mono_enabled=yes mono_static=yes mono_prefix=/root/mono-installs/wasm-runtime-release use_lto=no"
|
||||
export TERM=xterm
|
||||
|
||||
rm -rf godot
|
||||
@@ -20,12 +19,27 @@ tar xf /root/godot.tar.gz --strip-components=1
|
||||
if [ "${CLASSICAL}" == "1" ]; then
|
||||
echo "Starting classical build for JavaScript..."
|
||||
|
||||
source /root/emsdk_${EMSCRIPTEN_CLASSICAL}/emsdk_env.sh
|
||||
|
||||
$SCONS platform=javascript ${OPTIONS} target=release_debug tools=no
|
||||
$SCONS platform=javascript ${OPTIONS} target=release tools=no
|
||||
|
||||
$SCONS platform=javascript ${OPTIONS} target=release_debug tools=no threads_enabled=yes
|
||||
$SCONS platform=javascript ${OPTIONS} target=release tools=no threads_enabled=yes
|
||||
|
||||
$SCONS platform=javascript ${OPTIONS} target=release_debug tools=no gdnative_enabled=yes
|
||||
$SCONS platform=javascript ${OPTIONS} target=release tools=no gdnative_enabled=yes
|
||||
|
||||
mkdir -p /root/out/templates
|
||||
cp -rvp bin/*.zip /root/out/templates
|
||||
rm -f bin/*.zip
|
||||
|
||||
$SCONS platform=javascript ${OPTIONS} target=release_debug tools=yes threads_enabled=yes use_closure_compiler=yes
|
||||
|
||||
mkdir -p /root/out/tools
|
||||
cp -rvp bin/*.zip /root/out/tools
|
||||
rm -f bin/*.zip
|
||||
|
||||
fi
|
||||
|
||||
# Mono
|
||||
@@ -33,6 +47,8 @@ fi
|
||||
if [ "${MONO}" == "1" ]; then
|
||||
echo "Starting Mono build for JavaScript..."
|
||||
|
||||
source /root/emsdk_${EMSCRIPTEN_MONO}/emsdk_env.sh
|
||||
|
||||
cp /root/mono-glue/*.cpp modules/mono/glue/
|
||||
cp -r /root/mono-glue/GodotSharp/GodotSharp/Generated modules/mono/glue/GodotSharp/GodotSharp/
|
||||
cp -r /root/mono-glue/GodotSharp/GodotSharpEditor/Generated modules/mono/glue/GodotSharp/GodotSharpEditor/
|
||||
|
||||
@@ -4,16 +4,17 @@ set -e
|
||||
|
||||
# Config
|
||||
|
||||
export BUILD_NAME=official
|
||||
export SCONS="scons -j${NUM_CORES} verbose=yes warnings=no progress=no"
|
||||
export OPTIONS="debug_symbols=no use_lto=yes"
|
||||
export OPTIONS="production=yes"
|
||||
export OPTIONS_MONO="module_mono_enabled=yes mono_static=yes"
|
||||
export TERM=xterm
|
||||
export CC="gcc-8"
|
||||
export CXX="g++-8"
|
||||
|
||||
if [ "$(getconf LONG_BIT)" == "64" ]; then
|
||||
export OPTIONS="${OPTIONS} use_static_cpp=yes"
|
||||
# For i386 we're still using an old GCC 5 version from Ubuntu 16.04 as
|
||||
# upgrading the compiler seems to introduce weird issues.
|
||||
# Since that GCC version is fairly old, let's avoid LTO which wasn't so
|
||||
# mature at the time.
|
||||
if [ "$(getconf LONG_BIT)" == "32" ]; then
|
||||
export OPTIONS="$OPTIONS use_lto=no"
|
||||
fi
|
||||
|
||||
rm -rf godot
|
||||
@@ -26,13 +27,13 @@ tar xf /root/godot.tar.gz --strip-components=1
|
||||
if [ "${CLASSICAL}" == "1" ]; then
|
||||
echo "Starting classical build for Linux..."
|
||||
|
||||
$SCONS platform=x11 CC=$CC CXX=$CXX $OPTIONS tools=yes target=release_debug
|
||||
$SCONS platform=x11 $OPTIONS tools=yes target=release_debug
|
||||
mkdir -p /root/out/tools
|
||||
cp -rvp bin/* /root/out/tools
|
||||
rm -rf bin
|
||||
|
||||
$SCONS platform=x11 CC=$CC CXX=$CXX $OPTIONS tools=no target=release_debug
|
||||
$SCONS platform=x11 CC=$CC CXX=$CXX $OPTIONS tools=no target=release
|
||||
$SCONS platform=x11 $OPTIONS tools=no target=release_debug
|
||||
$SCONS platform=x11 $OPTIONS tools=no target=release
|
||||
mkdir -p /root/out/templates
|
||||
cp -rvp bin/* /root/out/templates
|
||||
rm -rf bin
|
||||
@@ -48,13 +49,17 @@ if [ "${MONO}" == "1" ]; then
|
||||
cp -r /root/mono-glue/GodotSharp/GodotSharpEditor/Generated modules/mono/glue/GodotSharp/GodotSharpEditor/
|
||||
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib/pkgconfig/
|
||||
|
||||
$SCONS platform=x11 CC=$CC CXX=$CXX $OPTIONS $OPTIONS_MONO tools=yes target=release_debug copy_mono_root=yes
|
||||
# Workaround for MSBuild segfault on Ubuntu containers, we build the CIL on Fedora and copy here.
|
||||
mkdir -p bin
|
||||
cp -r /root/mono-glue/cil/GodotSharp bin/
|
||||
|
||||
$SCONS platform=x11 $OPTIONS $OPTIONS_MONO tools=yes target=release_debug copy_mono_root=yes build_cil=no
|
||||
mkdir -p /root/out/tools-mono
|
||||
cp -rvp bin/* /root/out/tools-mono
|
||||
rm -rf bin
|
||||
|
||||
$SCONS platform=x11 CC=$CC CXX=$CXX $OPTIONS $OPTIONS_MONO tools=no target=release_debug
|
||||
$SCONS platform=x11 CC=$CC CXX=$CXX $OPTIONS $OPTIONS_MONO tools=no target=release
|
||||
$SCONS platform=x11 $OPTIONS $OPTIONS_MONO tools=no target=release_debug
|
||||
$SCONS platform=x11 $OPTIONS $OPTIONS_MONO tools=no target=release
|
||||
mkdir -p /root/out/templates-mono
|
||||
cp -rvp bin/* /root/out/templates-mono
|
||||
rm -rf bin
|
||||
|
||||
@@ -4,11 +4,11 @@ set -e
|
||||
|
||||
# Config
|
||||
|
||||
export BUILD_NAME=official
|
||||
export SCONS="scons -j${NUM_CORES} verbose=yes warnings=no progress=no"
|
||||
export OPTIONS="osxcross_sdk=darwin18 debug_symbols=no"
|
||||
export OPTIONS="osxcross_sdk=darwin20.2 production=yes"
|
||||
export OPTIONS_MONO="module_mono_enabled=yes mono_static=yes mono_prefix=/root/dependencies/mono"
|
||||
export TERM=xterm
|
||||
export STRIP="x86_64-apple-darwin20.2-strip -u -r"
|
||||
|
||||
rm -rf godot
|
||||
mkdir godot
|
||||
@@ -20,14 +20,23 @@ tar xf /root/godot.tar.gz --strip-components=1
|
||||
if [ "${CLASSICAL}" == "1" ]; then
|
||||
echo "Starting classical build for macOS..."
|
||||
|
||||
$SCONS platform=osx $OPTIONS tools=yes target=release_debug
|
||||
$SCONS platform=osx $OPTIONS arch=x86_64 tools=yes target=release_debug
|
||||
$SCONS platform=osx $OPTIONS arch=arm64 tools=yes target=release_debug
|
||||
lipo -create bin/godot.osx.opt.tools.x86_64 bin/godot.osx.opt.tools.arm64 -output bin/godot.osx.opt.tools.universal
|
||||
$STRIP bin/godot.osx.opt.tools.universal
|
||||
|
||||
mkdir -p /root/out/tools
|
||||
cp -rvp bin/* /root/out/tools
|
||||
rm -rf bin
|
||||
|
||||
$SCONS platform=osx $OPTIONS tools=no target=release_debug
|
||||
$SCONS platform=osx $OPTIONS tools=no target=release
|
||||
$SCONS platform=osx $OPTIONS arch=x86_64 tools=no target=release_debug
|
||||
$SCONS platform=osx $OPTIONS arch=arm64 tools=no target=release_debug
|
||||
lipo -create bin/godot.osx.opt.debug.x86_64 bin/godot.osx.opt.debug.arm64 -output bin/godot.osx.opt.debug.universal
|
||||
$STRIP bin/godot.osx.opt.debug.universal
|
||||
$SCONS platform=osx $OPTIONS arch=x86_64 tools=no target=release
|
||||
$SCONS platform=osx $OPTIONS arch=arm64 tools=no target=release
|
||||
lipo -create bin/godot.osx.opt.x86_64 bin/godot.osx.opt.arm64 -output bin/godot.osx.opt.universal
|
||||
$STRIP bin/godot.osx.opt.universal
|
||||
|
||||
mkdir -p /root/out/templates
|
||||
cp -rvp bin/* /root/out/templates
|
||||
@@ -43,14 +52,26 @@ if [ "${MONO}" == "1" ]; then
|
||||
cp -r /root/mono-glue/GodotSharp/GodotSharp/Generated modules/mono/glue/GodotSharp/GodotSharp/
|
||||
cp -r /root/mono-glue/GodotSharp/GodotSharpEditor/Generated modules/mono/glue/GodotSharp/GodotSharpEditor/
|
||||
|
||||
$SCONS platform=osx $OPTIONS $OPTIONS_MONO tools=yes target=release_debug copy_mono_root=yes
|
||||
$SCONS platform=osx $OPTIONS $OPTIONS_MONO arch=x86_64 tools=yes target=release_debug copy_mono_root=yes
|
||||
$STRIP bin/godot.osx.opt.tools.x86_64.mono
|
||||
#$SCONS platform=osx $OPTIONS $OPTIONS_MONO arch=arm64 tools=yes target=release_debug copy_mono_root=yes
|
||||
#lipo -create bin/godot.osx.opt.tools.x86_64.mono bin/godot.osx.opt.tools.arm64.mono -output bin/godot.osx.opt.tools.universal.mono
|
||||
#$STRIP bin/godot.osx.opt.tools.universal.mono
|
||||
|
||||
mkdir -p /root/out/tools-mono
|
||||
cp -rvp bin/* /root/out/tools-mono
|
||||
rm -rf bin
|
||||
|
||||
$SCONS platform=osx $OPTIONS $OPTIONS_MONO tools=no target=release_debug
|
||||
$SCONS platform=osx $OPTIONS $OPTIONS_MONO tools=no target=release
|
||||
$SCONS platform=osx $OPTIONS $OPTIONS_MONO arch=x86_64 tools=no target=release_debug
|
||||
$STRIP bin/godot.osx.opt.debug.x86_64.mono
|
||||
#$SCONS platform=osx $OPTIONS $OPTIONS_MONO arch=arm64 tools=no target=release_debug
|
||||
#lipo -create bin/godot.osx.opt.debug.x86_64.mono bin/godot.osx.opt.debug.arm64.mono -output bin/godot.osx.opt.debug.universal.mono
|
||||
#$STRIP bin/godot.osx.opt.debug.universal.mono
|
||||
$SCONS platform=osx $OPTIONS $OPTIONS_MONO arch=x86_64 tools=no target=release
|
||||
$STRIP bin/godot.osx.opt.x86_64.mono
|
||||
#$SCONS platform=osx $OPTIONS $OPTIONS_MONO arch=arm64 tools=no target=release
|
||||
#lipo -create bin/godot.osx.opt.x86_64.mono bin/godot.osx.opt.arm64.mono -output bin/godot.osx.opt.universal.mono
|
||||
#$STRIP bin/godot.osx.opt.universal.mono
|
||||
|
||||
mkdir -p /root/out/templates-mono
|
||||
cp -rvp bin/* /root/out/templates-mono
|
||||
|
||||
12
build-macosx/editor.entitlements
Normal file
12
build-macosx/editor.entitlements
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>com.apple.security.device.audio-input</key>
|
||||
<true/>
|
||||
<key>com.apple.security.device.camera</key>
|
||||
<true/>
|
||||
<key>com.apple.security.cs.disable-library-validation</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
||||
18
build-macosx/editor_mono.entitlements
Normal file
18
build-macosx/editor_mono.entitlements
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
|
||||
<true/>
|
||||
<key>com.apple.security.cs.allow-jit</key>
|
||||
<true/>
|
||||
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
|
||||
<true/>
|
||||
<key>com.apple.security.cs.disable-library-validation</key>
|
||||
<true/>
|
||||
<key>com.apple.security.device.audio-input</key>
|
||||
<true/>
|
||||
<key>com.apple.security.device.camera</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -4,10 +4,10 @@ set -e
|
||||
|
||||
# Config
|
||||
|
||||
export BUILD_NAME=official
|
||||
export SCONS="scons -j${NUM_CORES} verbose=yes warnings=no progress=no"
|
||||
export OPTIONS="debug_symbols=no"
|
||||
export OPTIONS="debug_symbols=no use_static_cpp=no"
|
||||
export TERM=xterm
|
||||
export DISPLAY=:0
|
||||
|
||||
rm -rf godot
|
||||
mkdir godot
|
||||
@@ -25,7 +25,15 @@ if [ "${MONO}" == "1" ]; then
|
||||
${SCONS} platform=x11 bits=64 ${OPTIONS} target=release_debug tools=yes module_mono_enabled=yes mono_glue=no
|
||||
|
||||
rm -rf /root/mono-glue/*
|
||||
xvfb-run bin/godot.x11.opt.tools.64.mono --generate-mono-glue /root/mono-glue || /bin/true
|
||||
xvfb-run bin/godot.x11.opt.tools.64.mono --audio-driver Dummy --generate-mono-glue /root/mono-glue || /bin/true
|
||||
|
||||
# Build and copy CIL that we'll need for Ubuntu 14.04 Linux builds
|
||||
# to workaround Mono MSBuild segfault in our containers.
|
||||
xvfb-run bin/godot.x11.opt.tools.64.mono --audio-driver Dummy --generate-mono-glue modules/mono/glue || /bin/true
|
||||
${SCONS} platform=x11 bits=64 ${OPTIONS} target=release_debug tools=yes module_mono_enabled=yes mono_glue=yes build_cil=yes
|
||||
|
||||
mkdir /root/mono-glue/cil
|
||||
cp -r bin/GodotSharp /root/mono-glue/cil/
|
||||
fi
|
||||
|
||||
echo "Mono glue generated successfully"
|
||||
|
||||
232
build-release.sh
232
build-release.sh
@@ -14,7 +14,7 @@ else
|
||||
echo "Disabling binary signing as config.sh does not define the required data."
|
||||
fi
|
||||
|
||||
function sign {
|
||||
sign_windows() {
|
||||
if [ $can_sign == 0 ]; then
|
||||
return
|
||||
fi
|
||||
@@ -22,16 +22,91 @@ function sign {
|
||||
mv $1-signed $1
|
||||
}
|
||||
|
||||
sign_macos() {
|
||||
if [ -z "${OSX_HOST}" ]; then
|
||||
return
|
||||
fi
|
||||
_osx_tmpdir=$(ssh "${OSX_HOST}" "mktemp -d")
|
||||
_reldir="$1"
|
||||
_binname="$2"
|
||||
_is_mono="$3"
|
||||
|
||||
if [[ "${_is_mono}" == "1" ]]; then
|
||||
_appname="Godot_mono.app"
|
||||
_entitlements=editor_mono.entitlements
|
||||
_sharpdir="${_appname}/Contents/Resources/GodotSharp"
|
||||
_extra_files="${_sharpdir}/Mono/lib/*.dylib ${_sharpdir}/Tools/aot-compilers/*/*"
|
||||
else
|
||||
_appname="Godot.app"
|
||||
_entitlements=editor.entitlements
|
||||
fi
|
||||
|
||||
scp "${_reldir}/${_binname}.zip" "${OSX_HOST}:${_osx_tmpdir}"
|
||||
scp "${basedir}/build-macosx/${_entitlements}" "${OSX_HOST}:${_osx_tmpdir}"
|
||||
ssh "${OSX_HOST}" "
|
||||
cd ${_osx_tmpdir} && \
|
||||
unzip ${_binname}.zip && \
|
||||
codesign --force --timestamp \
|
||||
--options=runtime --entitlements ${_entitlements} \
|
||||
-s ${OSX_KEY_ID} -v ${_extra_files} ${_appname} && \
|
||||
zip -r ${_binname}_signed.zip ${_appname}"
|
||||
|
||||
_request_uuid=$(ssh "${OSX_HOST}" "xcrun altool --notarize-app --primary-bundle-id \"${OSX_BUNDLE_ID}\" --username \"${APPLE_ID}\" --password \"${APPLE_ID_PASSWORD}\" --file ${_osx_tmpdir}/${_binname}_signed.zip")
|
||||
_request_uuid=$(echo ${_request_uuid} | sed -e 's/.*RequestUUID = //')
|
||||
ssh "${OSX_HOST}" "while xcrun altool --notarization-info ${_request_uuid} -u \"${APPLE_ID}\" -p \"${APPLE_ID_PASSWORD}\" | grep -q Status:\ in\ progress; do echo Waiting on Apple notarization...; sleep 30s; done"
|
||||
if ! ssh "${OSX_HOST}" "xcrun altool --notarization-info ${_request_uuid} -u \"${APPLE_ID}\" -p \"${APPLE_ID_PASSWORD}\" | grep -q Status:\ success"; then
|
||||
echo "Notarization failed."
|
||||
_notarization_log=$(ssh "${OSX_HOST}" "xcrun altool --notarization-info ${_request_uuid} -u \"${APPLE_ID}\" -p \"${APPLE_ID_PASSWORD}\"")
|
||||
echo "${_notarization_log}"
|
||||
ssh "${OSX_HOST}" "rm -rf ${_osx_tmpdir}"
|
||||
exit 1
|
||||
else
|
||||
ssh "${OSX_HOST}" "
|
||||
cd ${_osx_tmpdir} && \
|
||||
xcrun stapler staple ${_appname} && \
|
||||
zip -r ${_binname}_stapled.zip ${_appname}"
|
||||
scp "${OSX_HOST}:${_osx_tmpdir}/${_binname}_stapled.zip" "${_reldir}/${_binname}.zip"
|
||||
ssh "${OSX_HOST}" "rm -rf ${_osx_tmpdir}"
|
||||
fi
|
||||
}
|
||||
|
||||
sign_macos_template() {
|
||||
if [ -z "${OSX_HOST}" ]; then
|
||||
return
|
||||
fi
|
||||
_osx_tmpdir=$(ssh "${OSX_HOST}" "mktemp -d")
|
||||
_reldir="$1"
|
||||
_is_mono="$2"
|
||||
|
||||
if [[ "${_is_mono}" == "1" ]]; then
|
||||
_extra_files="osx_template.app/Contents/Resources/data.mono.*/Mono/lib/*.dylib"
|
||||
fi
|
||||
|
||||
scp "${_reldir}/osx.zip" "${OSX_HOST}:${_osx_tmpdir}"
|
||||
ssh "${OSX_HOST}" "
|
||||
cd ${_osx_tmpdir} && \
|
||||
unzip osx.zip && \
|
||||
codesign --force -s - \
|
||||
--options=linker-signed \
|
||||
-v ${_extra_files} osx_template.app/Contents/MacOS/* && \
|
||||
zip -r osx_signed.zip osx_template.app"
|
||||
|
||||
scp "${OSX_HOST}:${_osx_tmpdir}/osx_signed.zip" "${_reldir}/osx.zip"
|
||||
ssh "${OSX_HOST}" "rm -rf ${_osx_tmpdir}"
|
||||
}
|
||||
|
||||
godot_version=""
|
||||
templates_version=""
|
||||
build_classical=1
|
||||
build_mono=1
|
||||
|
||||
while getopts "h?v:b:" opt; do
|
||||
while getopts "h?v:t:b:" opt; do
|
||||
case "$opt" in
|
||||
h|\?)
|
||||
echo "Usage: $0 [OPTIONS...]"
|
||||
echo
|
||||
echo " -v godot version (e.g: 3.1-alpha5) [mandatory]"
|
||||
echo " -v godot version (e.g: 3.2-stable) [mandatory]"
|
||||
echo " -t templates version (e.g. 3.2.stable) [mandatory]"
|
||||
echo " -b all|classical|mono (default: all)"
|
||||
echo
|
||||
exit 1
|
||||
@@ -39,6 +114,9 @@ while getopts "h?v:b:" opt; do
|
||||
v)
|
||||
godot_version=$OPTARG
|
||||
;;
|
||||
t)
|
||||
templates_version=$OPTARG
|
||||
;;
|
||||
b)
|
||||
if [ "$OPTARG" == "classical" ]; then
|
||||
build_mono=0
|
||||
@@ -49,7 +127,13 @@ while getopts "h?v:b:" opt; do
|
||||
esac
|
||||
done
|
||||
|
||||
if [ -z "${godot_version}" -o -z "${templates_version}" ]; then
|
||||
echo "Mandatory argument -v or -t missing."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
export basedir=$(pwd)
|
||||
export webdir="${basedir}/web/${godot_version}"
|
||||
export reldir="${basedir}/releases/${godot_version}"
|
||||
export reldir_mono="${reldir}/mono"
|
||||
export tmpdir="${basedir}/tmp"
|
||||
@@ -60,9 +144,11 @@ export godot_basename="Godot_v${godot_version}"
|
||||
|
||||
# Cleanup and setup
|
||||
|
||||
rm -rf ${webdir}
|
||||
rm -rf ${reldir}
|
||||
rm -rf ${tmpdir}
|
||||
|
||||
mkdir -p ${webdir}
|
||||
mkdir -p ${reldir}
|
||||
mkdir -p ${reldir_mono}
|
||||
mkdir -p ${templatesdir}
|
||||
@@ -70,7 +156,7 @@ mkdir -p ${templatesdir_mono}
|
||||
|
||||
# Tarball
|
||||
|
||||
zcat godot.tar.gz | xz -c > ${reldir}/godot-${godot_version}.tar.xz
|
||||
zcat godot-${godot_version}.tar.gz | xz -c > ${reldir}/godot-${godot_version}.tar.xz
|
||||
pushd ${reldir}
|
||||
sha256sum godot-${godot_version}.tar.xz > godot-${godot_version}.tar.xz.sha256
|
||||
popd
|
||||
@@ -84,11 +170,13 @@ if [ "${build_classical}" == "1" ]; then
|
||||
# Editor
|
||||
binname="${godot_basename}_x11.64"
|
||||
cp out/linux/x64/tools/godot.x11.opt.tools.64 ${binname}
|
||||
strip ${binname}
|
||||
zip -q -9 "${reldir}/${binname}.zip" ${binname}
|
||||
rm ${binname}
|
||||
|
||||
binname="${godot_basename}_x11.32"
|
||||
cp out/linux/x86/tools/godot.x11.opt.tools.32 ${binname}
|
||||
strip ${binname}
|
||||
zip -q -9 "${reldir}/${binname}.zip" ${binname}
|
||||
rm ${binname}
|
||||
|
||||
@@ -97,6 +185,7 @@ if [ "${build_classical}" == "1" ]; then
|
||||
cp out/linux/x64/templates/godot.x11.opt.debug.64 ${templatesdir}/linux_x11_64_debug
|
||||
cp out/linux/x86/templates/godot.x11.opt.32 ${templatesdir}/linux_x11_32_release
|
||||
cp out/linux/x86/templates/godot.x11.opt.debug.32 ${templatesdir}/linux_x11_32_debug
|
||||
strip ${templatesdir}/linux_x11_*
|
||||
|
||||
## Windows (Classical) ##
|
||||
|
||||
@@ -104,14 +193,14 @@ if [ "${build_classical}" == "1" ]; then
|
||||
binname="${godot_basename}_win64.exe"
|
||||
cp out/windows/x64/tools/godot.windows.opt.tools.64.exe ${binname}
|
||||
strip ${binname}
|
||||
sign ${binname}
|
||||
sign_windows ${binname}
|
||||
zip -q -9 "${reldir}/${binname}.zip" ${binname}
|
||||
rm ${binname}
|
||||
|
||||
binname="${godot_basename}_win32.exe"
|
||||
cp out/windows/x86/tools/godot.windows.opt.tools.32.exe ${binname}
|
||||
strip ${binname}
|
||||
sign ${binname}
|
||||
sign_windows ${binname}
|
||||
zip -q -9 "${reldir}/${binname}.zip" ${binname}
|
||||
rm ${binname}
|
||||
|
||||
@@ -120,54 +209,72 @@ if [ "${build_classical}" == "1" ]; then
|
||||
cp out/windows/x64/templates/godot.windows.opt.debug.64.exe ${templatesdir}/windows_64_debug.exe
|
||||
cp out/windows/x86/templates/godot.windows.opt.32.exe ${templatesdir}/windows_32_release.exe
|
||||
cp out/windows/x86/templates/godot.windows.opt.debug.32.exe ${templatesdir}/windows_32_debug.exe
|
||||
|
||||
strip ${templatesdir}/windows*.exe
|
||||
|
||||
## OSX (Classical) ##
|
||||
|
||||
# Editor
|
||||
binname="${godot_basename}_osx.64"
|
||||
binname="${godot_basename}_osx.universal"
|
||||
rm -rf Godot.app
|
||||
cp -r git/misc/dist/osx_tools.app Godot.app
|
||||
mkdir -p Godot.app/Contents/MacOS
|
||||
cp out/macosx/x64/tools/godot.osx.opt.tools.64 Godot.app/Contents/MacOS/Godot
|
||||
cp out/macosx/tools/godot.osx.opt.tools.universal Godot.app/Contents/MacOS/Godot
|
||||
chmod +x Godot.app/Contents/MacOS/Godot
|
||||
zip -q -9 -r "${reldir}/${binname}.zip" Godot.app
|
||||
rm -rf Godot.app
|
||||
sign_macos ${reldir} ${binname} 0
|
||||
|
||||
# Templates
|
||||
rm -rf osx_template.app
|
||||
cp -r git/misc/dist/osx_template.app .
|
||||
mkdir -p osx_template.app/Contents/MacOS
|
||||
|
||||
cp out/macosx/x64/templates/godot.osx.opt.64 osx_template.app/Contents/MacOS/godot_osx_release.64
|
||||
cp out/macosx/x64/templates/godot.osx.opt.debug.64 osx_template.app/Contents/MacOS/godot_osx_debug.64
|
||||
cp out/macosx/templates/godot.osx.opt.universal osx_template.app/Contents/MacOS/godot_osx_release.64
|
||||
cp out/macosx/templates/godot.osx.opt.debug.universal osx_template.app/Contents/MacOS/godot_osx_debug.64
|
||||
chmod +x osx_template.app/Contents/MacOS/godot_osx*
|
||||
zip -q -9 -r "${templatesdir}/osx.zip" osx_template.app
|
||||
rm -rf osx_template.app
|
||||
sign_macos_template ${templatesdir} 0
|
||||
|
||||
## Server (Classical) ##
|
||||
|
||||
# Headless (editor)
|
||||
binname="${godot_basename}_linux_headless.64"
|
||||
cp out/server/x64/tools/godot_server.x11.opt.tools.64 ${binname}
|
||||
strip ${binname}
|
||||
zip -q -9 "${reldir}/${binname}.zip" ${binname}
|
||||
rm ${binname}
|
||||
|
||||
# Server (template)
|
||||
binname="${godot_basename}_linux_server.64"
|
||||
cp out/server/x64/templates/godot_server.x11.opt.64 ${binname}
|
||||
strip ${binname}
|
||||
zip -q -9 "${reldir}/${binname}.zip" ${binname}
|
||||
rm ${binname}
|
||||
|
||||
## Javascript (Classical) ##
|
||||
|
||||
# Editor
|
||||
unzip out/javascript/tools/godot.javascript.opt.tools.threads.zip -d ${webdir}/
|
||||
brotli --keep --force --quality=11 ${webdir}/*
|
||||
binname="${godot_basename}_web_editor.zip"
|
||||
cp out/javascript/tools/godot.javascript.opt.tools.threads.zip ${reldir}/${binname}
|
||||
|
||||
# Templates
|
||||
cp out/javascript/templates/godot.javascript.opt.zip ${templatesdir}/webassembly_release.zip
|
||||
cp out/javascript/templates/godot.javascript.opt.debug.zip ${templatesdir}/webassembly_debug.zip
|
||||
|
||||
cp out/javascript/templates/godot.javascript.opt.threads.zip ${templatesdir}/webassembly_threads_release.zip
|
||||
cp out/javascript/templates/godot.javascript.opt.debug.threads.zip ${templatesdir}/webassembly_threads_debug.zip
|
||||
|
||||
cp out/javascript/templates/godot.javascript.opt.gdnative.zip ${templatesdir}/webassembly_gdnative_release.zip
|
||||
cp out/javascript/templates/godot.javascript.opt.debug.gdnative.zip ${templatesdir}/webassembly_gdnative_debug.zip
|
||||
|
||||
## Android (Classical) ##
|
||||
|
||||
# Lib for direct download
|
||||
cp out/android/templates/godot-lib.release.aar ${reldir}/godot-lib.${templates_version}.release.aar
|
||||
|
||||
# Templates
|
||||
cp out/android/templates/*.apk ${templatesdir}/
|
||||
cp out/android/templates/android_source.zip ${templatesdir}/
|
||||
@@ -176,11 +283,9 @@ if [ "${build_classical}" == "1" ]; then
|
||||
|
||||
rm -rf ios_xcode
|
||||
cp -r git/misc/dist/ios_xcode ios_xcode
|
||||
for suffix in "" "_arkit_module" "_camera_module"; do
|
||||
cp out/ios/libgodot${suffix}.iphone.opt.fat ios_xcode/libgodot${suffix}.iphone.release.fat.a
|
||||
cp out/ios/libgodot${suffix}.iphone.opt.debug.fat ios_xcode/libgodot${suffix}.iphone.debug.fat.a
|
||||
done
|
||||
chmod +x ios_xcode/libgodot*.iphone.*
|
||||
cp out/ios/templates/libgodot.iphone.opt.fat ios_xcode/libgodot.iphone.release.fat.a
|
||||
cp out/ios/templates/libgodot.iphone.opt.debug.fat ios_xcode/libgodot.iphone.debug.fat.a
|
||||
chmod +x ios_xcode/libgodot.iphone.*
|
||||
cd ios_xcode
|
||||
zip -q -9 -r "${templatesdir}/iphone.zip" *
|
||||
cd ..
|
||||
@@ -188,17 +293,19 @@ if [ "${build_classical}" == "1" ]; then
|
||||
|
||||
## UWP (Classical) ##
|
||||
|
||||
if [ ! -d "angle" ]; then
|
||||
if [ ! -d "deps/angle" ]; then
|
||||
echo "Downloading ANGLE binaries from https://github.com/GodotBuilder/godot-builds/releases/tag/_tools"
|
||||
mkdir -p deps && cd deps
|
||||
curl -LO https://github.com/GodotBuilder/godot-builds/releases/download/_tools/angle.7z
|
||||
7z x angle.7z && rm -f angle.7z
|
||||
cd ..
|
||||
fi
|
||||
|
||||
rm -rf uwp_template_*
|
||||
for arch in ARM Win32 x64; do
|
||||
cp -r git/misc/dist/uwp_template uwp_template_${arch}
|
||||
cp angle/winrt/10/src/Release_${arch}/libEGL.dll \
|
||||
angle/winrt/10/src/Release_${arch}/libGLESv2.dll \
|
||||
cp deps/angle/winrt/10/src/Release_${arch}/libEGL.dll \
|
||||
deps/angle/winrt/10/src/Release_${arch}/libGLESv2.dll \
|
||||
uwp_template_${arch}/
|
||||
cp -r uwp_template_${arch} uwp_template_${arch}_debug
|
||||
done
|
||||
@@ -221,6 +328,21 @@ if [ "${build_classical}" == "1" ]; then
|
||||
cd uwp_template_x64_debug && zip -q -9 -r "${templatesdir}/uwp_x64_debug.zip" * && cd ..
|
||||
rm -rf uwp_template_x64*
|
||||
|
||||
## Templates TPZ (Classical) ##
|
||||
|
||||
echo "${templates_version}" > ${templatesdir}/version.txt
|
||||
pushd ${templatesdir}/..
|
||||
zip -q -9 -r -D "${reldir}/${godot_basename}_export_templates.tpz" templates/*
|
||||
popd
|
||||
|
||||
## SHA-512 sums (Classical) ##
|
||||
|
||||
pushd ${reldir}
|
||||
sha512sum [Gg]* > SHA512-SUMS.txt
|
||||
mkdir -p ${basedir}/sha512sums/${godot_version}
|
||||
cp SHA512-SUMS.txt ${basedir}/sha512sums/${godot_version}/
|
||||
popd
|
||||
|
||||
fi
|
||||
|
||||
# Mono
|
||||
@@ -233,14 +355,18 @@ if [ "${build_mono}" == "1" ]; then
|
||||
binbasename="${godot_basename}_mono_x11"
|
||||
mkdir -p ${binbasename}_64
|
||||
cp out/linux/x64/tools-mono/godot.x11.opt.tools.64.mono ${binbasename}_64/${binbasename}.64
|
||||
strip ${binbasename}_64/${binbasename}.64
|
||||
cp -rp out/linux/x64/tools-mono/GodotSharp ${binbasename}_64/
|
||||
cp -rp out/aot-compilers ${binbasename}_64/GodotSharp/Tools/
|
||||
zip -r -q -9 "${reldir_mono}/${binbasename}_64.zip" ${binbasename}_64
|
||||
rm -rf ${binbasename}_64
|
||||
|
||||
binbasename="${godot_basename}_mono_x11"
|
||||
mkdir -p ${binbasename}_32
|
||||
cp out/linux/x86/tools-mono/godot.x11.opt.tools.32.mono ${binbasename}_32/${binbasename}.32
|
||||
strip ${binbasename}_32/${binbasename}.32
|
||||
cp -rp out/linux/x86/tools-mono/GodotSharp/ ${binbasename}_32/
|
||||
cp -rp out/aot-compilers ${binbasename}_32/GodotSharp/Tools/
|
||||
zip -r -q -9 "${reldir_mono}/${binbasename}_32.zip" ${binbasename}_32
|
||||
rm -rf ${binbasename}_32
|
||||
|
||||
@@ -251,6 +377,7 @@ if [ "${build_mono}" == "1" ]; then
|
||||
cp -rp out/linux/x86/templates-mono/data.mono.x11.32.* ${templatesdir_mono}/
|
||||
cp out/linux/x86/templates-mono/godot.x11.opt.debug.32.mono ${templatesdir_mono}/linux_x11_32_debug
|
||||
cp out/linux/x86/templates-mono/godot.x11.opt.32.mono ${templatesdir_mono}/linux_x11_32_release
|
||||
strip ${templatesdir_mono}/linux_x11*
|
||||
|
||||
mkdir -p ${templatesdir_mono}/bcl
|
||||
cp -r out/linux/x64/tools-mono/GodotSharp/Mono/lib/mono/4.5/ ${templatesdir_mono}/bcl/net_4_x
|
||||
@@ -262,8 +389,9 @@ if [ "${build_mono}" == "1" ]; then
|
||||
mkdir -p ${binname}
|
||||
cp out/windows/x64/tools-mono/godot.windows.opt.tools.64.mono.exe ${binname}/${binname}.exe
|
||||
strip ${binname}/${binname}.exe
|
||||
sign ${binname}/${binname}.exe
|
||||
sign_windows ${binname}/${binname}.exe
|
||||
cp -rp out/windows/x64/tools-mono/GodotSharp ${binname}/
|
||||
cp -rp out/aot-compilers ${binname}/GodotSharp/Tools/
|
||||
zip -r -q -9 "${reldir_mono}/${binname}.zip" ${binname}
|
||||
rm -rf ${binname}
|
||||
|
||||
@@ -271,8 +399,9 @@ if [ "${build_mono}" == "1" ]; then
|
||||
mkdir -p ${binname}
|
||||
cp out/windows/x86/tools-mono/godot.windows.opt.tools.32.mono.exe ${binname}/${binname}.exe
|
||||
strip ${binname}/${binname}.exe
|
||||
sign ${binname}/${binname}.exe
|
||||
sign_windows ${binname}/${binname}.exe
|
||||
cp -rp out/windows/x86/tools-mono/GodotSharp ${binname}/
|
||||
cp -rp out/aot-compilers ${binname}/GodotSharp/Tools/
|
||||
zip -r -q -9 "${reldir_mono}/${binname}.zip" ${binname}
|
||||
rm -rf ${binname}
|
||||
|
||||
@@ -283,7 +412,6 @@ if [ "${build_mono}" == "1" ]; then
|
||||
cp -rp out/windows/x86/templates-mono/data.mono.windows.32.* ${templatesdir_mono}/
|
||||
cp out/windows/x86/templates-mono/godot.windows.opt.debug.32.mono.exe ${templatesdir_mono}/windows_32_debug.exe
|
||||
cp out/windows/x86/templates-mono/godot.windows.opt.32.mono.exe ${templatesdir_mono}/windows_32_release.exe
|
||||
|
||||
strip ${templatesdir_mono}/windows*.exe
|
||||
|
||||
mkdir -p ${templatesdir_mono}/bcl
|
||||
@@ -295,30 +423,26 @@ if [ "${build_mono}" == "1" ]; then
|
||||
binname="${godot_basename}_mono_osx.64"
|
||||
rm -rf Godot_mono.app
|
||||
cp -r git/misc/dist/osx_tools.app Godot_mono.app
|
||||
mkdir -p Godot_mono.app/Contents/MacOS
|
||||
cp out/macosx/x64/tools-mono/godot.osx.opt.tools.64.mono Godot_mono.app/Contents/MacOS/Godot
|
||||
mkdir -p Godot_mono.app/Contents/{Frameworks,Resources}
|
||||
mkdir -p Godot_mono.app/Contents/{Frameworks,Resources}/GodotSharp
|
||||
mkdir -p Godot_mono.app/Contents/{Frameworks,Resources}/GodotSharp/Mono
|
||||
cp -rp out/macosx/x64/tools-mono/GodotSharp/Api Godot_mono.app/Contents/Frameworks/GodotSharp
|
||||
cp -rp out/macosx/x64/tools-mono/GodotSharp/Mono/lib Godot_mono.app/Contents/Frameworks/GodotSharp/Mono
|
||||
cp -rp out/macosx/x64/tools-mono/GodotSharp/Tools Godot_mono.app/Contents/Frameworks/GodotSharp
|
||||
cp -rp out/macosx/x64/tools-mono/GodotSharp/Mono/etc Godot_mono.app/Contents/Resources/GodotSharp/Mono
|
||||
mkdir -p Godot_mono.app/Contents/{MacOS,Resources}
|
||||
cp out/macosx/tools-mono/godot.osx.opt.tools.x86_64.mono Godot_mono.app/Contents/MacOS/Godot
|
||||
cp -rp out/macosx/tools-mono/GodotSharp Godot_mono.app/Contents/Resources/GodotSharp
|
||||
cp -rp out/aot-compilers Godot_mono.app/Contents/Resources/GodotSharp/Tools/
|
||||
chmod +x Godot_mono.app/Contents/MacOS/Godot
|
||||
zip -q -9 -r "${reldir_mono}/${binname}.zip" Godot_mono.app
|
||||
rm -rf Godot_mono.app
|
||||
sign_macos ${reldir_mono} ${binname} 1
|
||||
|
||||
# Templates
|
||||
rm -rf osx_template.app
|
||||
cp -r git/misc/dist/osx_template.app .
|
||||
mkdir -p osx_template.app/Contents/MacOS
|
||||
|
||||
cp out/macosx/x64/templates-mono/godot.osx.opt.debug.64.mono osx_template.app/Contents/MacOS/godot_osx_debug.64
|
||||
cp out/macosx/x64/templates-mono/godot.osx.opt.64.mono osx_template.app/Contents/MacOS/godot_osx_release.64
|
||||
cp -rp out/macosx/x64/templates-mono/data.mono.osx.64.* osx_template.app/Contents/MacOS/
|
||||
mkdir -p osx_template.app/Contents/{MacOS,Resources}
|
||||
cp out/macosx/templates-mono/godot.osx.opt.debug.x86_64.mono osx_template.app/Contents/MacOS/godot_osx_debug.64
|
||||
cp out/macosx/templates-mono/godot.osx.opt.x86_64.mono osx_template.app/Contents/MacOS/godot_osx_release.64
|
||||
cp -rp out/macosx/templates-mono/data.mono.osx.64.* osx_template.app/Contents/Resources/
|
||||
chmod +x osx_template.app/Contents/MacOS/godot_osx*
|
||||
zip -q -9 -r "${templatesdir_mono}/osx.zip" osx_template.app
|
||||
rm -rf osx_template.app
|
||||
sign_macos_template ${templatesdir_mono} 1
|
||||
|
||||
## Server (Mono) ##
|
||||
|
||||
@@ -326,7 +450,9 @@ if [ "${build_mono}" == "1" ]; then
|
||||
binbasename="${godot_basename}_mono_linux_headless"
|
||||
mkdir -p ${binbasename}_64
|
||||
cp out/server/x64/tools-mono/godot_server.x11.opt.tools.64.mono ${binbasename}_64/${binbasename}.64
|
||||
strip ${binbasename}_64/${binbasename}.64
|
||||
cp -rp out/server/x64/tools-mono/GodotSharp ${binbasename}_64/
|
||||
cp -rp out/aot-compilers ${binbasename}_64/GodotSharp/Tools/
|
||||
zip -r -q -9 "${reldir_mono}/${binbasename}_64.zip" ${binbasename}_64
|
||||
rm -rf ${binbasename}_64
|
||||
|
||||
@@ -334,6 +460,7 @@ if [ "${build_mono}" == "1" ]; then
|
||||
binbasename="${godot_basename}_mono_linux_server"
|
||||
mkdir -p ${binbasename}_64
|
||||
cp out/server/x64/templates-mono/godot_server.x11.opt.64.mono ${binbasename}_64/${binbasename}.64
|
||||
strip ${binbasename}_64/${binbasename}.64
|
||||
cp -rp out/server/x64/templates-mono/data.mono.server.64.release ${binbasename}_64/data_${binbasename}_64
|
||||
zip -r -q -9 "${reldir_mono}/${binbasename}_64.zip" ${binbasename}_64
|
||||
rm -rf ${binbasename}_64
|
||||
@@ -349,6 +476,9 @@ if [ "${build_mono}" == "1" ]; then
|
||||
|
||||
## Android (Mono) ##
|
||||
|
||||
# Lib for direct download
|
||||
cp out/android/templates-mono/godot-lib.release.aar ${reldir_mono}/godot-lib.${templates_version}.mono.release.aar
|
||||
|
||||
# Templates
|
||||
cp out/android/templates-mono/*.apk ${templatesdir_mono}/
|
||||
cp out/android/templates-mono/android_source.zip ${templatesdir_mono}/
|
||||
@@ -359,12 +489,40 @@ if [ "${build_mono}" == "1" ]; then
|
||||
|
||||
## iOS (Mono) ##
|
||||
|
||||
# Not supported yet.
|
||||
rm -rf ios_xcode
|
||||
cp -r git/misc/dist/ios_xcode ios_xcode
|
||||
cp out/ios/templates-mono/libgodot.iphone.opt.fat ios_xcode/libgodot.iphone.release.fat.a
|
||||
cp out/ios/templates-mono/libgodot.iphone.opt.debug.fat ios_xcode/libgodot.iphone.debug.fat.a
|
||||
chmod +x ios_xcode/libgodot.iphone.*
|
||||
cd ios_xcode
|
||||
zip -q -9 -r "${templatesdir_mono}/iphone.zip" *
|
||||
cd ..
|
||||
rm -rf ios_xcode
|
||||
|
||||
mkdir -p ${templatesdir_mono}/bcl
|
||||
cp -r out/ios/templates-mono/bcl/monotouch* ${templatesdir_mono}/bcl/
|
||||
|
||||
cp -r out/ios/templates-mono/iphone-mono-libs ${templatesdir_mono}/
|
||||
|
||||
## UWP (Mono) ##
|
||||
|
||||
# Not supported yet.
|
||||
|
||||
## Templates TPZ (Mono) ##
|
||||
|
||||
echo "${templates_version}.mono" > ${templatesdir_mono}/version.txt
|
||||
pushd ${templatesdir_mono}/..
|
||||
zip -q -9 -r -D "${reldir_mono}/${godot_basename}_mono_export_templates.tpz" templates/*
|
||||
popd
|
||||
|
||||
## SHA-512 sums (Mono) ##
|
||||
|
||||
pushd ${reldir_mono}
|
||||
sha512sum [Gg]* >> SHA512-SUMS.txt
|
||||
mkdir -p ${basedir}/sha512sums/${godot_version}/mono
|
||||
cp SHA512-SUMS.txt ${basedir}/sha512sums/${godot_version}/mono/
|
||||
popd
|
||||
|
||||
fi
|
||||
|
||||
echo "All editor binaries and templates prepared successfully for release"
|
||||
|
||||
@@ -4,13 +4,12 @@ set -e
|
||||
|
||||
# Config
|
||||
|
||||
export BUILD_NAME=official
|
||||
export SCONS="scons -j${NUM_CORES} verbose=yes warnings=no progress=no"
|
||||
export OPTIONS="debug_symbols=no use_static_cpp=yes use_lto=yes"
|
||||
export OPTIONS="production=yes"
|
||||
export OPTIONS_MONO="module_mono_enabled=yes mono_static=yes"
|
||||
export TERM=xterm
|
||||
export CC="gcc-8"
|
||||
export CXX="g++-8"
|
||||
export CC="gcc-9"
|
||||
export CXX="g++-9"
|
||||
|
||||
rm -rf godot
|
||||
mkdir godot
|
||||
@@ -43,7 +42,11 @@ if [ "${MONO}" == "1" ]; then
|
||||
cp -r /root/mono-glue/GodotSharp/GodotSharp/Generated modules/mono/glue/GodotSharp/GodotSharp/
|
||||
cp -r /root/mono-glue/GodotSharp/GodotSharpEditor/Generated modules/mono/glue/GodotSharp/GodotSharpEditor/
|
||||
|
||||
$SCONS platform=server CC=$CC CXX=$CXX $OPTIONS $OPTIONS_MONO tools=yes target=release_debug copy_mono_root=yes
|
||||
# Workaround for MSBuild segfault on Ubuntu containers, we build the CIL on Fedora and copy here.
|
||||
mkdir -p bin
|
||||
cp -r /root/mono-glue/cil/GodotSharp bin/
|
||||
|
||||
$SCONS platform=server CC=$CC CXX=$CXX $OPTIONS $OPTIONS_MONO tools=yes target=release_debug copy_mono_root=yes build_cil=no
|
||||
mkdir -p /root/out/tools-mono
|
||||
cp -rvp bin/* /root/out/tools-mono
|
||||
rm -rf bin
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
godot_version=""
|
||||
templates_version=""
|
||||
build_classical=1
|
||||
build_mono=1
|
||||
|
||||
while getopts "h?v:t:b:" opt; do
|
||||
case "$opt" in
|
||||
h|\?)
|
||||
echo "Usage: $0 [OPTIONS...]"
|
||||
echo
|
||||
echo " -v public version (e.g. 3.2-stable) [mandatory]"
|
||||
echo " -t templates version (e.g. 3.2.stable) [mandatory]"
|
||||
echo " -b all|classical|mono (default: all)"
|
||||
echo
|
||||
exit 1
|
||||
;;
|
||||
v)
|
||||
godot_version=$OPTARG
|
||||
;;
|
||||
t)
|
||||
templates_version=$OPTARG
|
||||
;;
|
||||
b)
|
||||
if [ "$OPTARG" == "classical" ]; then
|
||||
build_mono=0
|
||||
elif [ "$OPTARG" == "mono" ]; then
|
||||
build_classical=0
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
if [ -z "${godot_version}" -o -z "${templates_version}" ]; then
|
||||
echo "Mandatory argument -v or -t missing."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
export basedir=$(pwd)
|
||||
export reldir="${basedir}/releases/${godot_version}"
|
||||
export reldir_mono="${reldir}/mono"
|
||||
export tmpdir="${basedir}/tmp"
|
||||
export templatesdir="${tmpdir}/templates"
|
||||
export templatesdir_mono="${tmpdir}/mono/templates"
|
||||
|
||||
export godot_basename="Godot_v${godot_version}"
|
||||
|
||||
# Classical
|
||||
|
||||
if [ "${build_classical}" == "1" ]; then
|
||||
echo "${templates_version}" > ${templatesdir}/version.txt
|
||||
|
||||
mkdir -p ${reldir}
|
||||
pushd ${templatesdir}/..
|
||||
zip -q -9 -r -D "${reldir}/${godot_basename}_export_templates.tpz" templates/*
|
||||
popd
|
||||
fi
|
||||
|
||||
# Mono
|
||||
|
||||
if [ "${build_mono}" == "1" ]; then
|
||||
echo "${templates_version}.mono" > ${templatesdir_mono}/version.txt
|
||||
|
||||
mkdir -p ${reldir_mono}
|
||||
pushd ${templatesdir_mono}/..
|
||||
zip -q -9 -r -D "${reldir_mono}/${godot_basename}_mono_export_templates.tpz" templates/*
|
||||
popd
|
||||
fi
|
||||
|
||||
echo "Templates archives generated successfully"
|
||||
@@ -4,9 +4,8 @@ set -e
|
||||
|
||||
# Config
|
||||
|
||||
export BUILD_NAME=official
|
||||
export SCONS="call scons -j4 verbose=yes warnings=no progress=no"
|
||||
export OPTIONS="debug_symbols=no"
|
||||
export SCONS="call scons -j${NUM_CORES} verbose=yes warnings=no progress=no"
|
||||
export OPTIONS="production=yes"
|
||||
export BUILD_ARCHES="x86 x64 arm"
|
||||
export ANGLE_SRC_PATH='c:\angle'
|
||||
|
||||
@@ -18,7 +17,7 @@ tar xf /root/godot.tar.gz --strip-components=1
|
||||
# Classical
|
||||
|
||||
if [ "${CLASSICAL}" == "1" ]; then
|
||||
echo "Starting classical build for Server..."
|
||||
echo "Starting classical build for UWP..."
|
||||
|
||||
for arch in ${BUILD_ARCHES}; do
|
||||
for release in release release_debug; do
|
||||
|
||||
@@ -4,9 +4,8 @@ set -e
|
||||
|
||||
# Config
|
||||
|
||||
export BUILD_NAME=official
|
||||
export SCONS="scons -j${NUM_CORES} verbose=yes warnings=no progress=no"
|
||||
export OPTIONS="debug_symbols=no use_lto=yes"
|
||||
export OPTIONS="production=yes"
|
||||
export OPTIONS_MONO="module_mono_enabled=yes mono_static=yes"
|
||||
export TERM=xterm
|
||||
export MONO32_PREFIX=/root/dependencies/mono-32
|
||||
|
||||
48
build.sh
48
build.sh
@@ -13,6 +13,10 @@ if [ ! -e config.sh ]; then
|
||||
fi
|
||||
source ./config.sh
|
||||
|
||||
if [ -z "${BUILD_NAME}" ]; then
|
||||
export BUILD_NAME="custom_build"
|
||||
fi
|
||||
|
||||
if [ -z "${NUM_CORES}" ]; then
|
||||
export NUM_CORES=16
|
||||
fi
|
||||
@@ -25,7 +29,7 @@ git_treeish="master"
|
||||
build_classical=1
|
||||
build_mono=1
|
||||
force_download=0
|
||||
skip_download=0
|
||||
skip_download=1
|
||||
skip_git_checkout=0
|
||||
|
||||
while getopts "h?r:u:p:v:g:b:fsc" opt; do
|
||||
@@ -100,6 +104,16 @@ if [ -z "${godot_version}" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
IFS=- read version status <<< "$godot_version"
|
||||
echo "Building Godot ${version} ${status} from commit or branch ${git_treeish}."
|
||||
read -p "Is this correct (y/n)? " choice
|
||||
case "$choice" in
|
||||
y|Y ) echo "yes";;
|
||||
n|N ) echo "No, aborting."; exit 0;;
|
||||
* ) echo "Invalid choice, aborting."; exit 1;;
|
||||
esac
|
||||
export GODOT_VERSION_STATUS="${status}"
|
||||
|
||||
if [ ! -z "${username}" ] && [ ! -z "${password}" ]; then
|
||||
if ${podman} login ${registry} -u "${username}" -p "${password}"; then
|
||||
export logged_in=true
|
||||
@@ -139,7 +153,22 @@ if [ "${skip_git_checkout}" == 0 ]; then
|
||||
git clean -fdx
|
||||
git pull origin ${git_treeish} || /bin/true
|
||||
|
||||
git archive --format=tar $git_treeish --prefix=godot-${godot_version}/ | gzip > ../godot.tar.gz
|
||||
# Validate version
|
||||
correct_version=$(python3 << EOF
|
||||
import version;
|
||||
if hasattr(version, "patch") and version.patch != 0:
|
||||
git_version = f"{version.major}.{version.minor}.{version.patch}"
|
||||
else:
|
||||
git_version = f"{version.major}.{version.minor}"
|
||||
print(git_version == "${version}")
|
||||
EOF
|
||||
)
|
||||
if [[ "$correct_version" != "True" ]]; then
|
||||
echo "Version in version.py doesn't match the passed ${version}."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
sh misc/scripts/make_tarball.sh -v ${godot_version} -g ${git_treeish}
|
||||
popd
|
||||
fi
|
||||
|
||||
@@ -147,8 +176,13 @@ export basedir="$(pwd)"
|
||||
mkdir -p ${basedir}/out
|
||||
mkdir -p ${basedir}/out/logs
|
||||
|
||||
export podman_run="${podman} run -it --rm --env NUM_CORES --env CLASSICAL=${build_classical} --env MONO=${build_mono} -v ${basedir}/godot.tar.gz:/root/godot.tar.gz -v ${basedir}/mono-glue:/root/mono-glue -w /root/"
|
||||
export img_version=3.2-mono-6.6.0.166
|
||||
export podman_run="${podman} run -it --rm --env BUILD_NAME --env GODOT_VERSION_STATUS --env NUM_CORES --env CLASSICAL=${build_classical} --env MONO=${build_mono} -v ${basedir}/godot-${godot_version}.tar.gz:/root/godot.tar.gz -v ${basedir}/mono-glue:/root/mono-glue -w /root/"
|
||||
export img_version=3.x-mono-6.12.0.122
|
||||
|
||||
# Get AOT compilers from their containers.
|
||||
mkdir -p ${basedir}/out/aot-compilers
|
||||
${podman} run -it --rm -w /root -v ${basedir}/out/aot-compilers:/root/out localhost/godot-ios:${img_version} bash -c "cp -r /root/aot-compilers/* /root/out"
|
||||
chmod +x ${basedir}/out/aot-compilers/*/*
|
||||
|
||||
mkdir -p ${basedir}/mono-glue
|
||||
${podman_run} -v ${basedir}/build-mono-glue:/root/build localhost/godot-mono-glue:${img_version} bash build/build.sh 2>&1 | tee ${basedir}/out/logs/mono-glue
|
||||
@@ -165,8 +199,8 @@ ${podman_run} -v ${basedir}/build-linux:/root/build -v ${basedir}/out/linux/x86:
|
||||
mkdir -p ${basedir}/out/javascript
|
||||
${podman_run} -v ${basedir}/build-javascript:/root/build -v ${basedir}/out/javascript:/root/out localhost/godot-javascript:${img_version} bash build/build.sh 2>&1 | tee ${basedir}/out/logs/javascript
|
||||
|
||||
mkdir -p ${basedir}/out/macosx/x64
|
||||
${podman_run} -v ${basedir}/build-macosx:/root/build -v ${basedir}/out/macosx/x64:/root/out localhost/godot-osx:${img_version} bash build/build.sh 2>&1 | tee ${basedir}/out/logs/macosx
|
||||
mkdir -p ${basedir}/out/macosx
|
||||
${podman_run} -v ${basedir}/build-macosx:/root/build -v ${basedir}/out/macosx:/root/out localhost/godot-osx:${img_version} bash build/build.sh 2>&1 | tee ${basedir}/out/logs/macosx
|
||||
|
||||
mkdir -p ${basedir}/out/android
|
||||
${podman_run} -v ${basedir}/build-android:/root/build -v ${basedir}/out/android:/root/out localhost/godot-android:${img_version} bash build/build.sh 2>&1 | tee ${basedir}/out/logs/android
|
||||
@@ -181,5 +215,5 @@ mkdir -p ${basedir}/out/uwp
|
||||
${podman_run} --ulimit nofile=32768:32768 -v ${basedir}/build-uwp:/root/build -v ${basedir}/out/uwp:/root/out ${registry}/godot-private/uwp:latest bash build/build.sh 2>&1 | tee ${basedir}/out/logs/uwp
|
||||
|
||||
if [ ! -z "$SUDO_UID" ]; then
|
||||
chown -R "${SUDO_UID}":"${SUDO_GID}" ${basedir}/out
|
||||
chown -R "${SUDO_UID}":"${SUDO_GID}" ${basedir}/git ${basedir}/out ${basedir}/mono-glue ${basedir}/godot*.tar.gz
|
||||
fi
|
||||
|
||||
15
config.sh.in
15
config.sh.in
@@ -11,6 +11,9 @@
|
||||
# https://github.com/godotengine/build-containers
|
||||
export REGISTRY="registry.prehensile-tales.com"
|
||||
|
||||
# Default build name used to distinguish between official and custom builds.
|
||||
export BUILD_NAME="custom_build"
|
||||
|
||||
# Default number of parallel cores for each build.
|
||||
export NUM_CORES=16
|
||||
|
||||
@@ -27,3 +30,15 @@ export SIGN_PASSWORD=""
|
||||
# Use your own when making a thirdparty build.
|
||||
export SIGN_NAME=""
|
||||
export SIGN_URL=""
|
||||
|
||||
# Hostname or IP address of an OSX host (Needed for signing)
|
||||
# eg "user@10.1.0.10"
|
||||
export OSX_HOST=""
|
||||
# ID of the Apple certificate used to sign
|
||||
export OSX_KEY_ID=""
|
||||
# Bundle id for the signed app
|
||||
export OSX_BUNDLE_ID=""
|
||||
# Username/password for Apple's signing APIs (used for atltool)
|
||||
export APPLE_ID=""
|
||||
export APPLE_ID_PASSWORD=""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user