added packaging / bundling

This commit is contained in:
2026-07-18 18:12:41 +02:00
parent 2890921f3a
commit 897e116db7
11 changed files with 141 additions and 3 deletions

View File

@@ -1,9 +1,19 @@
#![cfg_attr(target_os = "windows", windows_subsystem = "windows")]
use bds_ui::BdsApp;
fn main() -> iced::Result {
let icon =
iced::window::icon::from_file_data(include_bytes!("../assets/app-icons/bds.png"), None)
.expect("bundled application icon must be valid");
iced::application("bDS", BdsApp::update, BdsApp::view)
.subscription(BdsApp::subscription)
.theme(|_| iced::Theme::Dark)
.window_size((1200.0, 800.0))
.window(iced::window::Settings {
size: iced::Size::new(1200.0, 800.0),
icon: Some(icon),
..Default::default()
})
.run_with(BdsApp::new)
}