Skip to content

Commit c3d199c

Browse files
authored
Merge pull request #98 from godotengine/stable-windows-steamapi
Windows: Add extra editor build with `steamapi=yes` for stable releases
2 parents 834f622 + 629090d commit c3d199c

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

build-windows/build.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,17 @@ if [ "${CLASSICAL}" == "1" ]; then
5252
mkdir -p /root/out/arm64/templates
5353
cp -rvp bin/* /root/out/arm64/templates
5454
rm -rf bin
55+
56+
if [ "${STEAM}" == "1" ]; then
57+
build_name=${BUILD_NAME}
58+
export BUILD_NAME="steam"
59+
$SCONS platform=windows arch=x86_64 $OPTIONS target=editor steamapi=yes
60+
$SCONS platform=windows arch=x86_32 $OPTIONS target=editor steamapi=yes
61+
mkdir -p /root/out/steam
62+
cp -rvp bin/* /root/out/steam
63+
rm -rf bin
64+
export BUILD_NAME=${build_name}
65+
fi
5566
fi
5667

5768
# Mono

build.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ godot_version=""
2828
git_treeish="master"
2929
build_classical=1
3030
build_mono=1
31+
build_steam=0
3132
force_download=0
3233
skip_download=1
3334
skip_git_checkout=0
@@ -100,6 +101,10 @@ case "$choice" in
100101
esac
101102
export GODOT_VERSION_STATUS="${status}"
102103

104+
if [ "${status}" == "stable" ]; then
105+
build_steam=1
106+
fi
107+
103108
if [ ! -z "${username}" ] && [ ! -z "${password}" ]; then
104109
if ${podman} login ${registry} -u "${username}" -p "${password}"; then
105110
export logged_in=true
@@ -226,7 +231,7 @@ mkdir -p ${basedir}/mono-glue
226231
${podman_run} -v ${basedir}/build-mono-glue:/root/build localhost/godot-linux:${img_version} bash build/build.sh 2>&1 | tee ${basedir}/out/logs/mono-glue
227232

228233
mkdir -p ${basedir}/out/windows
229-
${podman_run} -v ${basedir}/build-windows:/root/build -v ${basedir}/out/windows:/root/out -v ${basedir}/deps/angle:/root/angle -v ${basedir}/deps/mesa:/root/mesa localhost/godot-windows:${img_version} bash build/build.sh 2>&1 | tee ${basedir}/out/logs/windows
234+
${podman_run} -v ${basedir}/build-windows:/root/build -v ${basedir}/out/windows:/root/out -v ${basedir}/deps/angle:/root/angle -v ${basedir}/deps/mesa:/root/mesa --env STEAM=${build_steam} localhost/godot-windows:${img_version} bash build/build.sh 2>&1 | tee ${basedir}/out/logs/windows
230235

231236
mkdir -p ${basedir}/out/linux
232237
${podman_run} -v ${basedir}/build-linux:/root/build -v ${basedir}/out/linux:/root/out localhost/godot-linux:${img_version} bash build/build.sh 2>&1 | tee ${basedir}/out/logs/linux

0 commit comments

Comments
 (0)