Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify generate_wasm_examples.sh #771

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions generate-wasm-examples/clone_bevy.sh

This file was deleted.

17 changes: 4 additions & 13 deletions generate-wasm-examples/generate_wasm_examples.sh
Original file line number Diff line number Diff line change
@@ -1,23 +1,14 @@
#!/bin/sh

./clone_bevy.sh

# temporary: fetch tools from main branch
git init bevy-tools
cd bevy-tools
git remote add origin https://github.com/bevyengine/bevy
git pull --depth=1 origin main
cd ..
rm -rf bevy/tools
cp -r bevy-tools/tools bevy
rm -rf bevy-tools
# fetch bevy, just for bevyengine/tools
git clone https://github.com/bevyengine/bevy --depth 1
cd bevy

# build examples for webgl2
cargo run -p example-showcase -- build-website-list --content-folder content --api webgl2
mv content ../../content/examples

rm -rf content

# build examples for webgpu
cargo run -p example-showcase -- build-website-list --content-folder content --api webgpu
mv content ../../content/examples-webgpu

Expand Down
Loading