Skip to content

Commit

Permalink
data file asset copy
Browse files Browse the repository at this point in the history
  • Loading branch information
Xevion committed Apr 14, 2024
1 parent 98bbd00 commit a0e111d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit a0e111d

Please sign in to comment.