feat: android build
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
use eframe::Renderer;
|
||||
use egui::Vec2;
|
||||
use std::path::PathBuf;
|
||||
use zap_stream_app::app::ZapStreamApp;
|
||||
|
||||
#[tokio::main]
|
||||
@ -12,9 +13,10 @@ async fn main() {
|
||||
options.renderer = Renderer::Glow;
|
||||
options.viewport = options.viewport.with_inner_size(Vec2::new(360., 720.));
|
||||
|
||||
let data_path = PathBuf::from(".");
|
||||
let _res = eframe::run_native(
|
||||
"zap.stream",
|
||||
options,
|
||||
Box::new(move |cc| Ok(Box::new(ZapStreamApp::new(cc)))),
|
||||
Box::new(move |cc| Ok(Box::new(ZapStreamApp::new(cc, data_path)))),
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user