mirror of
https://github.com/Xevion/rust-sdl2-emscripten.git
synced 2025-12-06 11:16:19 -06:00
data file asset copy
This commit is contained in:
@@ -45,6 +45,10 @@ output_folder="target/wasm32-unknown-emscripten/$build_type"
|
|||||||
cp assets/index.html dist
|
cp assets/index.html dist
|
||||||
cp $output_folder/pacman.wasm dist
|
cp $output_folder/pacman.wasm dist
|
||||||
cp $output_folder/pacman.js 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
|
if [ "$serve" = 'true' ]; then
|
||||||
echo "Serving WASM with Emscripten"
|
echo "Serving WASM with Emscripten"
|
||||||
|
|||||||
Reference in New Issue
Block a user