mirror of https://github.com/sotrh/learn-wgpu
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
365 B
Bash
10 lines
365 B
Bash
3 years ago
|
#!/usr/bin/env bash
|
||
|
# Adapted from https://github.com/gfx-rs/wgpu/blob/master/run-wasm-example.sh
|
||
|
|
||
|
set -e
|
||
|
|
||
|
cargo build --bin pong --target wasm32-unknown-unknown
|
||
|
|
||
|
mkdir -p target/wasm-examples/pong
|
||
|
wasm-bindgen --target web --out-dir target/wasm-examples/pong target/wasm32-unknown-unknown/debug/pong.wasm
|
||
|
cp index.template.html target/wasm-examples/pong/index.html
|