Skip to content

Commit 3e55f3d

Browse files
committed
fix: pin emscripten and emsdk to a release, so that it has to be updated manually
1 parent 6382aeb commit 3e55f3d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

platforms/build-web.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,15 @@ fi
4646

4747
export EMSCRIPTEN_ROOT="$(pwd)/toolchains/emsdk"
4848

49+
export EMSCRIPTEN_RELEASE_TAG="4.0.8"
50+
4951
if [ ! -d "$EMSCRIPTEN_ROOT" ]; then
5052
git clone https://github.com/emscripten-core/emsdk.git "$EMSCRIPTEN_ROOT"
53+
git -C "$EMSCRIPTEN_ROOT" checkout "$EMSCRIPTEN_RELEASE_TAG"
5154
fi
5255

53-
"$EMSCRIPTEN_ROOT/emsdk" install latest
54-
"$EMSCRIPTEN_ROOT/emsdk" activate latest
56+
"$EMSCRIPTEN_ROOT/emsdk" install "$EMSCRIPTEN_RELEASE_TAG"
57+
"$EMSCRIPTEN_ROOT/emsdk" activate "$EMSCRIPTEN_RELEASE_TAG"
5558

5659
EMSCRIPTEN_UPSTREAM_ROOT="$EMSCRIPTEN_ROOT/upstream/emscripten"
5760

0 commit comments

Comments
 (0)