Skip to content

Commit 36fc7fc

Browse files
authored
Merge pull request #65 from godotengine/js-is-web
2 parents ccb6b90 + 2c6469a commit 36fc7fc

File tree

3 files changed

+25
-25
lines changed

3 files changed

+25
-25
lines changed

build-release.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -245,20 +245,20 @@ if [ "${build_classical}" == "1" ]; then
245245
rm -rf macos_template.app
246246
sign_macos_template ${templatesdir} 0
247247

248-
## Javascript (Classical) ##
248+
## Web (Classical) ##
249249

250250
# Editor
251-
unzip out/javascript/tools/godot.javascript.opt.tools.threads.zip -d ${webdir}/
251+
unzip out/web/tools/godot.web.opt.tools.threads.zip -d ${webdir}/
252252
brotli --keep --force --quality=11 ${webdir}/*
253253
binname="${godot_basename}_web_editor.zip"
254-
cp out/javascript/tools/godot.javascript.opt.tools.threads.zip ${reldir}/${binname}
254+
cp out/web/tools/godot.web.opt.tools.threads.zip ${reldir}/${binname}
255255

256256
# Templates
257-
cp out/javascript/templates/godot.javascript.opt.threads.zip ${templatesdir}/webassembly_threads_release.zip
258-
cp out/javascript/templates/godot.javascript.opt.debug.threads.zip ${templatesdir}/webassembly_threads_debug.zip
257+
cp out/web/templates/godot.web.opt.threads.zip ${templatesdir}/webassembly_threads_release.zip
258+
cp out/web/templates/godot.web.opt.debug.threads.zip ${templatesdir}/webassembly_threads_debug.zip
259259

260-
cp out/javascript/templates/godot.javascript.opt.gdnative.threads.zip ${templatesdir}/webassembly_gdnative_threads_release.zip
261-
cp out/javascript/templates/godot.javascript.opt.debug.gdnative.threads.zip ${templatesdir}/webassembly_gdnative_threads_debug.zip
260+
cp out/web/templates/godot.web.opt.gdnative.threads.zip ${templatesdir}/webassembly_gdnative_threads_release.zip
261+
cp out/web/templates/godot.web.opt.debug.gdnative.threads.zip ${templatesdir}/webassembly_gdnative_threads_debug.zip
262262

263263
## Android (Classical) ##
264264

@@ -451,14 +451,14 @@ if [ "${build_mono}" == "1" ]; then
451451
rm -rf macos_template.app
452452
sign_macos_template ${templatesdir_mono} 1
453453

454-
# ## Javascript (Mono) ##
454+
# ## Web (Mono) ##
455455
#
456456
# # Templates
457-
# cp out/javascript/templates-mono/godot.javascript.opt.debug.mono.zip ${templatesdir_mono}/webassembly_debug.zip
458-
# cp out/javascript/templates-mono/godot.javascript.opt.mono.zip ${templatesdir_mono}/webassembly_release.zip
457+
# cp out/web/templates-mono/godot.web.opt.debug.mono.zip ${templatesdir_mono}/webassembly_debug.zip
458+
# cp out/web/templates-mono/godot.web.opt.mono.zip ${templatesdir_mono}/webassembly_release.zip
459459
#
460460
# mkdir -p ${templatesdir_mono}/bcl
461-
# cp -r out/javascript/templates-mono/bcl/wasm ${templatesdir_mono}/bcl/
461+
# cp -r out/web/templates-mono/bcl/wasm ${templatesdir_mono}/bcl/
462462

463463
## Android (Mono) ##
464464

build-javascript/build.sh renamed to build-web/build.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,21 @@ tar xf /root/godot.tar.gz --strip-components=1
1717
# Classical
1818

1919
if [ "${CLASSICAL}" == "1" ]; then
20-
echo "Starting classical build for JavaScript..."
20+
echo "Starting classical build for Web..."
2121

2222
source /root/emsdk_${EMSCRIPTEN_CLASSICAL}/emsdk_env.sh
2323

24-
$SCONS platform=javascript ${OPTIONS} target=release_debug tools=no
25-
$SCONS platform=javascript ${OPTIONS} target=release tools=no
24+
$SCONS platform=web ${OPTIONS} target=release_debug tools=no
25+
$SCONS platform=web ${OPTIONS} target=release tools=no
2626

27-
$SCONS platform=javascript ${OPTIONS} target=release_debug tools=no gdnative_enabled=yes
28-
$SCONS platform=javascript ${OPTIONS} target=release tools=no gdnative_enabled=yes
27+
$SCONS platform=web ${OPTIONS} target=release_debug tools=no gdnative_enabled=yes
28+
$SCONS platform=web ${OPTIONS} target=release tools=no gdnative_enabled=yes
2929

3030
mkdir -p /root/out/templates
3131
cp -rvp bin/*.zip /root/out/templates
3232
rm -f bin/*.zip
3333

34-
$SCONS platform=javascript ${OPTIONS} target=release_debug tools=yes use_closure_compiler=yes
34+
$SCONS platform=web ${OPTIONS} target=release_debug tools=yes use_closure_compiler=yes
3535

3636
mkdir -p /root/out/tools
3737
cp -rvp bin/*.zip /root/out/tools
@@ -42,16 +42,16 @@ fi
4242
# Mono
4343

4444
if [ "${MONO}" == "1" ]; then
45-
echo "Starting Mono build for JavaScript..."
45+
echo "Starting Mono build for Web..."
4646

4747
source /root/emsdk_${EMSCRIPTEN_MONO}/emsdk_env.sh
4848

4949
cp /root/mono-glue/*.cpp modules/mono/glue/
5050
cp -r /root/mono-glue/GodotSharp/GodotSharp/Generated modules/mono/glue/GodotSharp/GodotSharp/
5151
cp -r /root/mono-glue/GodotSharp/GodotSharpEditor/Generated modules/mono/glue/GodotSharp/GodotSharpEditor/
5252

53-
$SCONS platform=javascript ${OPTIONS} ${OPTIONS_MONO} target=release_debug tools=no
54-
$SCONS platform=javascript ${OPTIONS} ${OPTIONS_MONO} target=release tools=no
53+
$SCONS platform=web ${OPTIONS} ${OPTIONS_MONO} target=release_debug tools=no
54+
$SCONS platform=web ${OPTIONS} ${OPTIONS_MONO} target=release tools=no
5555

5656
mkdir -p /root/out/templates-mono
5757
cp -rvp bin/*.zip /root/out/templates-mono
@@ -61,4 +61,4 @@ if [ "${MONO}" == "1" ]; then
6161
cp -r /root/mono-installs/wasm-bcl/wasm /root/out/templates-mono/bcl/
6262
fi
6363

64-
echo "JavaScript build successful"
64+
echo "Web build successful"

build.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ fi
122122

123123
if [ $skip_download == 0 ]; then
124124
echo "Fetching images"
125-
for image in mono-glue windows linux javascript; do
125+
for image in mono-glue windows linux web; do
126126
if [ ${force_download} == 1 ] || ! ${podman} image exists godot/$image; then
127127
if ! ${podman} pull ${registry}/godot/${image}; then
128128
echo "ERROR: image $image does not exist and can't be downloaded"
@@ -182,7 +182,7 @@ mkdir -p ${basedir}/out
182182
mkdir -p ${basedir}/out/logs
183183

184184
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/"
185-
export img_version=3.x-f36-mono-6.12.0.182
185+
export img_version=4.x-f36
186186

187187
# Get AOT compilers from their containers.
188188
mkdir -p ${basedir}/out/aot-compilers
@@ -198,8 +198,8 @@ ${podman_run} -v ${basedir}/build-windows:/root/build -v ${basedir}/out/windows:
198198
mkdir -p ${basedir}/out/linux
199199
${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
200200

201-
mkdir -p ${basedir}/out/javascript
202-
${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
201+
mkdir -p ${basedir}/out/web
202+
${podman_run} -v ${basedir}/build-web:/root/build -v ${basedir}/out/web:/root/out localhost/godot-web:${img_version} bash build/build.sh 2>&1 | tee ${basedir}/out/logs/web
203203

204204
mkdir -p ${basedir}/out/macos
205205
${podman_run} -v ${basedir}/build-macos:/root/build -v ${basedir}/out/macos:/root/out -v ${basedir}/deps/vulkansdk-macos:/root/vulkansdk localhost/godot-osx:${img_version} bash build/build.sh 2>&1 | tee ${basedir}/out/logs/macos

0 commit comments

Comments
 (0)