pandemonium_engine/misc/build_containers/build_all.sh

211 lines
5.8 KiB
Bash
Raw Normal View History

#!/bin/bash
set -e
basedir=$(pwd)/
cd ../..
project_root=$(pwd)/
img_version=pe
mkdir -p logs
custom_envvars=''
if [[ -z "${OFFICIAL}" ]]; then
custom_envvars='-e BUILD_NAME=official'
fi
# Windows Build
docker run ${custom_envvars} \
-v ${basedir}/engine_build_scripts:/root/engine_build_scripts \
-v ${project_root}:/root/project \
-w /root/project pandemonium-windows:${img_version} \
bash /root/engine_build_scripts/windows.sh "$@" 2>&1 | tee logs/windows.log
# Linux Build
docker run ${custom_envvars} \
-v ${basedir}/engine_build_scripts:/root/engine_build_scripts \
-v ${project_root}:/root/project \
-w /root/project pandemonium-linux:${img_version} \
bash /root/engine_build_scripts/linux.sh "$@" 2>&1 | tee logs/linux.log
2024-04-21 02:08:49 +02:00
# Javascript Build
docker run ${custom_envvars} \
-v ${basedir}/engine_build_scripts:/root/engine_build_scripts \
-v ${project_root}:/root/project \
-w /root/project pandemonium-javascript:${img_version} \
bash /root/engine_build_scripts/javascript.sh "$@" 2>&1 | tee logs/javascript.log
# Android Build
docker run ${custom_envvars} \
-v ${basedir}/engine_build_scripts:/root/engine_build_scripts \
-v ${project_root}:/root/project \
-w /root/project pandemonium-android:${img_version} \
bash /root/engine_build_scripts/android.sh "$@" 2>&1 | tee logs/android.log
# OSX Build
docker run ${custom_envvars} \
-v ${basedir}/engine_build_scripts:/root/engine_build_scripts \
-v ${project_root}:/root/project \
-w /root/project pandemonium-osx:${img_version} \
bash /root/engine_build_scripts/osx.sh "$@" 2>&1 | tee logs/osx.log
2024-04-21 04:40:47 +02:00
# iOS Build
docker run ${custom_envvars} \
-v ${basedir}/engine_build_scripts:/root/engine_build_scripts \
-v ${project_root}:/root/project \
-w /root/project pandemonium-ios:${img_version} \
bash /root/engine_build_scripts/ios.sh "$@" 2>&1 | tee logs/ios.log
2024-04-21 05:11:15 +02:00
# FRT Build arm64
docker run ${custom_envvars} \
-v ${basedir}/engine_build_scripts:/root/engine_build_scripts \
-v ${project_root}:/root/project \
-w /root/project pandemonium-frt-arm64:${img_version} \
bash /root/engine_build_scripts/frt_arm64.sh "$@" 2>&1 | tee logs/frt_arm64.log
2024-04-21 05:11:15 +02:00
# FRT Build arm32
docker run ${custom_envvars} \
2024-04-21 05:11:15 +02:00
-v ${basedir}/engine_build_scripts:/root/engine_build_scripts \
-v ${project_root}:/root/project \
2024-04-21 11:59:13 +02:00
-w /root/project pandemonium-frt-arm32:${img_version} \
2024-04-21 05:11:15 +02:00
bash /root/engine_build_scripts/frt_arm32.sh "$@" 2>&1 | tee logs/frt_arm32.log
2024-04-21 04:40:47 +02:00
# Check files
cd ./bin/
files=(
# Windows
"pandemonium.windows.opt.64.exe"
"pandemonium.windows.opt.debug.64.exe"
"pandemonium.windows.opt.32.exe"
"pandemonium.windows.opt.debug.32.exe"
"pandemonium.windows.opt.tools.64.exe"
"pandemonium.windows.opt.tools.32.exe"
# Linux
2024-04-20 23:49:21 +02:00
"pandemonium.x11.opt.32"
"pandemonium.x11.opt.64"
2024-04-20 23:49:21 +02:00
"pandemonium.x11.opt.arm"
"pandemonium.x11.opt.arm64"
"pandemonium.x11.opt.debug.32"
2024-04-20 23:49:21 +02:00
"pandemonium.x11.opt.debug.64"
"pandemonium.x11.opt.debug.arm"
"pandemonium.x11.opt.debug.arm64"
"pandemonium.x11.opt.tools.32"
2024-04-20 23:49:21 +02:00
"pandemonium.x11.opt.tools.64"
"pandemonium.x11.opt.tools.arm"
"pandemonium.x11.opt.tools.arm64"
2024-04-21 12:33:49 +02:00
# Server (Linux)
"pandemonium_server.x11.opt.32"
"pandemonium_server.x11.opt.64"
2024-04-21 12:33:49 +02:00
"pandemonium_server.x11.opt.arm"
"pandemonium_server.x11.opt.arm64"
2024-04-21 12:33:49 +02:00
"pandemonium_server.x11.opt.debug.32"
"pandemonium_server.x11.opt.debug.64"
"pandemonium_server.x11.opt.debug.arm"
"pandemonium_server.x11.opt.debug.arm64"
2024-04-21 12:33:49 +02:00
"pandemonium_server.x11.opt.tools.32"
"pandemonium_server.x11.opt.tools.64"
2024-04-21 12:33:49 +02:00
"pandemonium_server.x11.opt.tools.arm"
"pandemonium_server.x11.opt.tools.arm64"
# HTTP Server (Linux)
"pandemonium_http_server.x11.opt.32"
"pandemonium_http_server.x11.opt.64"
"pandemonium_http_server.x11.opt.arm"
"pandemonium_http_server.x11.opt.arm64"
"pandemonium_http_server.x11.opt.debug.32"
"pandemonium_http_server.x11.opt.debug.64"
"pandemonium_http_server.x11.opt.debug.arm"
"pandemonium_http_server.x11.opt.debug.arm64"
# JS
"pandemonium.javascript.opt.zip"
"pandemonium.javascript.opt.debug.zip"
"pandemonium.javascript.opt.threads.zip"
"pandemonium.javascript.opt.debug.threads.zip"
"pandemonium.javascript.opt.tools.threads.zip"
2024-04-21 02:08:49 +02:00
"pandemonium.javascript.opt.gdnative.zip"
"pandemonium.javascript.opt.debug.gdnative.zip"
# Android
"android_source.zip"
"android_debug.apk"
"android_release.apk"
"android_editor.apk"
"pandemonium-lib.release.aar"
"pandemonium-lib.debug.aar"
# OSX
"pandemonium.osx.opt.universal"
"pandemonium.osx.opt.debug.universal"
"pandemonium.osx.opt.tools.universal"
# Note: These are not needed in the final release, only the universals.
"pandemonium.osx.opt.arm64"
"pandemonium.osx.opt.x86_64"
"pandemonium.osx.opt.debug.arm64"
"pandemonium.osx.opt.debug.x86_64"
"pandemonium.osx.opt.tools.arm64"
"pandemonium.osx.opt.tools.x86_64"
2024-04-21 04:40:47 +02:00
# iOS
"libpandemonium.iphone.opt.arm64.a"
"libpandemonium.iphone.opt.debug.arm64.a"
"libpandemonium.iphone.opt.debug.x86_64.simulator.a"
"libpandemonium.iphone.opt.x86_64.simulator.a"
# FRT
"pandemonium.frt.opt.arm32v6"
"pandemonium.frt.opt.arm32v7"
"pandemonium.frt.opt.arm64v8"
"pandemonium.frt.opt.debug.arm32v6"
"pandemonium.frt.opt.debug.arm32v7"
"pandemonium.frt.opt.debug.arm64v8"
# FRT SDL
"pandemonium.frt_sdl.opt.arm32v6"
"pandemonium.frt_sdl.opt.arm32v7"
"pandemonium.frt_sdl.opt.arm64v8"
"pandemonium.frt_sdl.opt.debug.arm32v6"
"pandemonium.frt_sdl.opt.debug.arm32v7"
"pandemonium.frt_sdl.opt.debug.arm64v8"
)
error=0
for f in ${files[*]}
do
if [ ! -e $f ]; then
error=1
echo "$f is not present!"
fi
done
if [ $error -eq 0 ]; then
echo "All files are present!"
fi
cd ..