Skip to content

Commit

Permalink
Add favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolandu committed Feb 7, 2024
1 parent f2f3181 commit 251ee46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions index.html → assets/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />

<head>
<link rel="icon" href="favicon.svg">
<style>
body {
margin: 0px;
Expand Down
9 changes: 4 additions & 5 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ cd "$parent_path"
cargo build --release
rm -r ./out/
wasm-bindgen --no-typescript --target web \
--out-dir ./out/ \
--out-dir ./docs/ \
--out-name "bounce_simulator" \
./target/wasm32-unknown-unknown/release/bounce_simulator.wasm
wasm-opt -Oz -o ./out/bounce_simulator_bg.wasm ./out/bounce_simulator_bg.wasm
cp -a ./assets/ ./out/
cp index.html ./out/
mv ./out ./docs
wasm-opt -Oz -o ./docs/bounce_simulator_bg.wasm ./out/bounce_simulator_bg.wasm
cp -a ./assets/ ./docs/
cp ./art/player_red.svg ./docs/favicon.svg

0 comments on commit 251ee46

Please sign in to comment.