Skip to content

Commit 21da214

Browse files
committed
[HTML5] Add tools builds to release scripts.
Will unpack the zip, compress each file with brotli, and place them into the `web` folder (to be uploaded to the web editor host server).
1 parent 7024ac7 commit 21da214

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

build-javascript/build.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ if [ "${CLASSICAL}" == "1" ]; then
3434
mkdir -p /root/out/templates
3535
cp -rvp bin/*.zip /root/out/templates
3636
rm -f bin/*.zip
37+
38+
$SCONS platform=javascript ${OPTIONS} target=release_debug tools=yes threads_enabled=yes use_closure_compiler=yes
39+
40+
mkdir -p /root/out/tools
41+
cp -rvp bin/*.zip /root/out/tools
42+
rm -f bin/*.zip
43+
3744
fi
3845

3946
# Mono

build-release.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ if [ -z "${godot_version}" -o -z "${templates_version}" ]; then
6060
fi
6161

6262
export basedir=$(pwd)
63+
export webdir="${basedir}/web/${godot_version}"
6364
export reldir="${basedir}/releases/${godot_version}"
6465
export reldir_mono="${reldir}/mono"
6566
export tmpdir="${basedir}/tmp"
@@ -70,9 +71,11 @@ export godot_basename="Godot_v${godot_version}"
7071

7172
# Cleanup and setup
7273

74+
rm -rf ${webdir}
7375
rm -rf ${reldir}
7476
rm -rf ${tmpdir}
7577

78+
mkdir -p ${webdir}
7679
mkdir -p ${reldir}
7780
mkdir -p ${reldir_mono}
7881
mkdir -p ${templatesdir}
@@ -172,6 +175,10 @@ if [ "${build_classical}" == "1" ]; then
172175

173176
## Javascript (Classical) ##
174177

178+
# Editor
179+
unzip out/javascript/tools/godot.javascript.opt.tools.threads.zip -d ${webdir}/
180+
brotli --keep --force --quality=11 ${webdir}/*
181+
175182
# Templates
176183
cp out/javascript/templates/godot.javascript.opt.zip ${templatesdir}/webassembly_release.zip
177184
cp out/javascript/templates/godot.javascript.opt.debug.zip ${templatesdir}/webassembly_debug.zip

0 commit comments

Comments
 (0)