Skip to content

Commit

Permalink
Fix Wasm demo
Browse files Browse the repository at this point in the history
  • Loading branch information
janhohenheim committed Feb 18, 2024
1 parent beb5965 commit 83be515
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions demo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ bevy = "0.13"
bevy_yarnspinner = { path = "../crates/bevy_plugin", version = "0.2" }
bevy_yarnspinner_example_dialogue_view = { path = "../crates/example_dialogue_view", version = "0.2" }
bevy_sprite3d = { git = "https://github.com/vertesians/bevy_sprite3d", branch = "main" } # waiting for https://github.com/FraserLee/bevy_sprite3d/pull/15 to be merged


[target.'cfg(target_arch = "wasm32")'.dependencies]
instant = { version = "0.1.12", features = ["wasm-bindgen"] } # see https://github.com/rustwasm/wasm-bindgen/discussions/3500#discussioncomment-6334669
2 changes: 1 addition & 1 deletion demo/wasm/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ rustup target add wasm32-unknown-unknown
cargo build --bin bevy_yarnspinner_demo --target wasm32-unknown-unknown

# Keep this in sync with the version in `Cargo.lock`.
cargo install wasm-bindgen-cli --version 0.2.90 || true
cargo install wasm-bindgen-cli --version 0.2.91 || true
wasm-bindgen --no-typescript --out-name bevy_yarnspinner_demo --out-dir demo/wasm --target web target/wasm32-unknown-unknown/debug/bevy_yarnspinner_demo.wasm

cargo install basic-http-server || true
Expand Down

0 comments on commit 83be515

Please sign in to comment.