From a0e111d0366dcbff3c91cdf1639d38a8442dc808 Mon Sep 17 00:00:00 2001 From: Xevion Date: Sun, 14 Apr 2024 02:16:34 -0500 Subject: [PATCH] data file asset copy --- scripts/build.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/build.sh b/scripts/build.sh index c3bdb20..0eff465 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -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"