2022-03-23 22:15:35 +01:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
2022-10-11 17:17:20 +02:00
|
|
|
basedir=$(pwd)/
|
|
|
|
|
2022-03-23 22:15:35 +01:00
|
|
|
cd ../..
|
|
|
|
|
|
|
|
project_root=$(pwd)/
|
|
|
|
img_version=pe
|
|
|
|
|
|
|
|
mkdir -p logs
|
|
|
|
|
2022-10-11 22:36:09 +02:00
|
|
|
custom_envvars=''
|
|
|
|
|
|
|
|
if [[ -z "${OFFICIAL}" ]]; then
|
|
|
|
custom_envvars='-e BUILD_NAME=official'
|
|
|
|
fi
|
|
|
|
|
2024-04-20 22:18:39 +02:00
|
|
|
# Windows Build
|
2024-04-20 23:49:21 +02:00
|
|
|
#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
|
2022-03-23 22:15:35 +01:00
|
|
|
|
2022-10-11 17:17:20 +02:00
|
|
|
# Linux Build
|
2024-04-21 02:08:49 +02:00
|
|
|
#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
|
|
|
|
|
|
|
|
|
|
|
|
# Javascript Build
|
2024-04-21 03:20:49 +02:00
|
|
|
#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
|
2022-03-23 22:15:35 +01:00
|
|
|
|
2022-03-23 22:23:22 +01:00
|
|
|
|
2024-04-21 04:00:52 +02:00
|
|
|
# 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} \
|
2024-04-21 03:20:49 +02:00
|
|
|
-v ${basedir}/engine_build_scripts:/root/engine_build_scripts \
|
|
|
|
-v ${project_root}:/root/project \
|
2024-04-21 04:00:52 +02:00
|
|
|
-w /root/project pandemonium-osx:${img_version} \
|
|
|
|
bash /root/engine_build_scripts/osx.sh "$@" 2>&1 | tee logs/osx.log
|
2022-03-23 22:23:22 +01:00
|
|
|
|
|
|
|
|
2022-03-23 22:15:35 +01:00
|
|
|
|
2024-04-21 04:00:52 +02:00
|
|
|
exit 1
|
2022-03-23 22:15:35 +01:00
|
|
|
|
|
|
|
#ios
|
2024-04-20 22:18:39 +02:00
|
|
|
#docker run ${custom_envvars} -v ${project_root}:/root/project -w /root/project pandemonium-ios:${img_version} scons bir_strip "$@" . 2>&1 | tee logs/bir.log
|
2022-03-23 22:15:35 +01:00
|
|
|
|
2024-04-20 22:18:39 +02:00
|
|
|
# docker run ${custom_envvars} -v ${project_root}:/root/project -i -w /root/project -t pandemonium-windows:${img_version} scons bew "$@"
|
2022-03-23 22:15:35 +01:00
|
|
|
|
|
|
|
# Check files
|
|
|
|
|
|
|
|
cd ./bin/
|
|
|
|
|
|
|
|
files=(
|
|
|
|
# Windows
|
|
|
|
"pandemonium.windows.opt.64.exe"
|
|
|
|
"pandemonium.windows.opt.debug.64.exe"
|
2022-03-25 13:25:00 +01:00
|
|
|
|
|
|
|
"pandemonium.windows.opt.32.exe"
|
|
|
|
"pandemonium.windows.opt.debug.32.exe"
|
|
|
|
|
2022-03-23 22:15:35 +01:00
|
|
|
"pandemonium.windows.opt.tools.64.exe"
|
2022-03-25 14:13:34 +01:00
|
|
|
"pandemonium.windows.opt.tools.32.exe"
|
2022-03-25 13:25:00 +01:00
|
|
|
|
2022-03-23 22:15:35 +01:00
|
|
|
# Linux
|
2024-04-20 23:49:21 +02:00
|
|
|
"pandemonium.x11.opt.32"
|
2022-03-23 22:15:35 +01:00
|
|
|
"pandemonium.x11.opt.64"
|
2024-04-20 23:49:21 +02:00
|
|
|
"pandemonium.x11.opt.arm"
|
|
|
|
"pandemonium.x11.opt.arm64"
|
2022-03-25 13:25:00 +01:00
|
|
|
|
2022-10-11 17:04:36 +02:00
|
|
|
"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"
|
2022-03-25 13:25:00 +01:00
|
|
|
|
2022-10-11 17:04:36 +02:00
|
|
|
"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"
|
2022-03-25 14:13:34 +01:00
|
|
|
|
|
|
|
# Server (Linux) - template
|
2022-03-25 20:52:56 +01:00
|
|
|
"pandemonium_server.x11.opt.64"
|
|
|
|
"pandemonium_server.x11.opt.debug.64"
|
2022-03-25 14:13:34 +01:00
|
|
|
|
|
|
|
# Headless (Linux) - editor
|
|
|
|
|
2022-03-25 20:52:56 +01:00
|
|
|
"pandemonium_server.x11.opt.tools.64"
|
2022-03-25 13:25:00 +01:00
|
|
|
|
2022-03-23 22:15:35 +01:00
|
|
|
# JS
|
|
|
|
"pandemonium.javascript.opt.zip"
|
2022-03-25 13:25:00 +01:00
|
|
|
"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"
|
|
|
|
|
2022-03-23 22:15:35 +01:00
|
|
|
# Android
|
2022-03-25 13:25:00 +01:00
|
|
|
"android_source.zip"
|
2022-03-23 22:15:35 +01:00
|
|
|
"android_debug.apk"
|
|
|
|
"android_release.apk"
|
|
|
|
"android_editor.apk"
|
2022-03-25 14:13:34 +01:00
|
|
|
"pandemonium-lib.release.aar"
|
2024-04-21 03:20:49 +02:00
|
|
|
"pandemonium-lib.debug.aar"
|
2022-03-25 13:25:00 +01:00
|
|
|
|
2022-03-23 22:15:35 +01:00
|
|
|
# OSX
|
2022-03-25 13:25:00 +01:00
|
|
|
"pandemonium.osx.opt.universal"
|
2024-04-21 04:00:52 +02:00
|
|
|
"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"
|
2022-03-25 13:25:00 +01:00
|
|
|
"pandemonium.osx.opt.x86_64"
|
|
|
|
|
2022-03-23 22:15:35 +01:00
|
|
|
"pandemonium.osx.opt.debug.arm64"
|
|
|
|
"pandemonium.osx.opt.debug.x86_64"
|
2022-03-25 13:25:00 +01:00
|
|
|
|
2022-03-23 22:15:35 +01:00
|
|
|
"pandemonium.osx.opt.tools.arm64"
|
|
|
|
"pandemonium.osx.opt.tools.x86_64"
|
|
|
|
)
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2022-08-02 14:20:22 +02:00
|
|
|
cd ..
|