Establish OA/SA prototype baseline and first-release work
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
||||
mod app;
|
||||
mod behavior;
|
||||
mod diagram;
|
||||
mod forms;
|
||||
mod guide;
|
||||
mod highlight;
|
||||
mod navigation;
|
||||
mod source_navigation;
|
||||
mod style;
|
||||
#[cfg(test)]
|
||||
mod tests;
|
||||
mod views;
|
||||
mod workflow;
|
||||
|
||||
fn main() -> iced::Result {
|
||||
// Small headless entry points support reproducible examples and CI validation.
|
||||
let args: Vec<_> = std::env::args().collect();
|
||||
if args.get(1).is_some_and(|s| s == "--write-example") {
|
||||
let path = args
|
||||
.get(2)
|
||||
.expect("usage: arcadia-studio --write-example PATH");
|
||||
oa_core::persistence::save(std::path::Path::new(path), &oa_core::Project::demo())
|
||||
.expect("write example");
|
||||
return Ok(());
|
||||
}
|
||||
iced::application(app::App::new, app::App::update, app::App::view)
|
||||
.title(app::App::title)
|
||||
.theme(|_: &app::App| style::theme())
|
||||
.subscription(app::App::subscription)
|
||||
.window(iced::window::Settings {
|
||||
size: iced::Size::new(1440., 900.),
|
||||
min_size: Some(iced::Size::new(1100., 700.)),
|
||||
exit_on_close_request: false,
|
||||
..Default::default()
|
||||
})
|
||||
.run()
|
||||
}
|
||||
Reference in New Issue
Block a user