- Install the Dioxus CLI
- Run the following command to build the app:
dx bundle --release -p app_dx
- The binary will be located in
/app_dx/dist
directory.
To enable the Bevy Remote Protocol (BRP) in your Bevy project, enable bevy_remote
feature:
[dependencies]
bevy = { version = "0.16", features = ["bevy_remote"] }
Then add the following plugins to your game/app:
use bevy::remote::{http::RemoteHttpPlugin, RemotePlugin};
fn main() {
App::new()
.add_plugins(RemotePlugin::default()) // 👈 ADD THIS
.add_plugins(RemoteHttpPlugin::default()) // 👈 ADD THIS
.run();
}
To start the dev server, run:
dx serve -p app_dx