data file asset copy

This commit is contained in:
2024-04-14 02:16:34 -05:00
parent 98bbd00eaf
commit a0e111d036

View File

@@ -45,6 +45,10 @@ output_folder="target/wasm32-unknown-emscripten/$build_type"
cp assets/index.html dist
cp $output_folder/pacman.wasm dist
cp $output_folder/pacman.js dist
# only if .data file exists
if [ -f $output_folder/pacman.data ]; then
cp $output_folder/pacman.data dist
fi
if [ "$serve" = 'true' ]; then
echo "Serving WASM with Emscripten"