Skip to content

Commit

Permalink
[Wasm] Fix path to file_packager tool from EMSDK in GenerateHTML5Exam…
Browse files Browse the repository at this point in the history
…ples.sh script.
  • Loading branch information
LukasBanana committed Sep 14, 2024
1 parent 3d12bda commit 655e6b3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion BuildWasm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ if [ -z "$EMSDK" ]; then
fi

EMSCRIPTEN_CMAKE_TOOLCHAIN="$EMSDK/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake"
EMSCRIPTEN_FILE_PACKAGER="$EMSDK/upstream/emscripten/tools/file_packager"

if [ ! -f "$EMSCRIPTEN_CMAKE_TOOLCHAIN" ]; then
echo "Error: Could not find file $EMSCRIPTEN_CMAKE_TOOLCHAIN"
Expand Down
8 changes: 8 additions & 0 deletions scripts/GenerateHTML5Examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ for ARG in "$@"; do
fi
done

# Find Emscripten SDK
if [ -z "$EMSDK" ]; then
echo "Error: Missing EMSDK environment variable. Run 'source <PATH-TO-EMSDK>/emsdk_env.sh' to fix it."
exit 1
fi

EMSCRIPTEN_FILE_PACKAGER="$EMSDK/upstream/emscripten/tools/file_packager"

# Copys the input file to the output and removes '\r' EOL characters from text files.
# Web page will run on Linux server and Git must not convert EOL for this output file.
# Otherwise, data offsets in the *.data.js script won't match with the *.data file after Git uploaded it.
Expand Down

0 comments on commit 655e6b3

Please sign in to comment.