| Crates.io | bevyhub_template |
| lib.rs | bevyhub_template |
| version | 0.0.1-rc.2 |
| created_at | 2024-12-09 05:29:17.374814+00 |
| updated_at | 2024-12-18 06:22:22.815711+00 |
| description | An example workflow for publishing Bevy apps and scenes to Bevyhub. |
| homepage | https://bevyhub.dev |
| repository | https://github.com/mrchantey/bevyhub |
| max_upload_size | |
| id | 1476967 |
| size | 139,144 |
A demonstration of the workflow for publishing Bevy apps and scenes to bevyhub.
Based on Bevy's internal optimizations, commands used with the base_app example, measured on 13/09/24 with bevy@0.14.2 and bevyhub@0.0.6-rc.4.
| Command | size | Notes |
|---|---|---|
cargo build --release |
46.65 MB |
|
cargo build --release && wasm-opt -Oz |
26.11 MB |
About half |
cargo build --profile wasm-release |
46.65 MB |
No measurable difference |
cargo build --profile wasm-release && wasm-opt -Oz |
46.65 MB |
No measurable difference |
Running cargo run won't do much, the app is a blank canvas 🖌️
Export scenes: cargo run --bin export_scenes
Run the app: cargo run scenes/my_base_scene.json scenes/my_beautiful_scene.json
Bevyhub currently does not host apps, the simplest approach is to deploy to Github Pages and link to that. Because Bevy apps can be several megabytes at least, I recommend creating a new repo just for releases so it doesn't clog up your codebase repo.
For cross-repo deployment you will need to generate a Personal Access Token and place it in your github secrets.
# setup repo
gh auth login
gh repo create my-releases --public --confirm
gh repo clone my-releases
cd my-releases
# initial commit
echo "# My GitHub Pages Site" > README.md
echo "<div>hello world</div>" > index.html
git add .
git commit -m "Initial commit with README"
git push origin main