use std::env::consts::{ARCH, OS}; use std::error::Error; use std::path::PathBuf; use sysinfo::System; use o3launcher::launcher::Profile; #[tokio::main] async fn main() -> Result<(), Box> { simple_logger::SimpleLogger::new().init().unwrap(); println!("Hello, world!"); println!("stuff: {:?} {:?} {:?} {:?} {:?}", System::name(), System::os_version(), System::long_os_version(), System::kernel_version(), System::cpu_arch()); println!("stuff: {:?} {:?} {:?} {}", System::distribution_id(), OS, ARCH, size_of::<*const i32>()); let launcher = o3launcher::launcher::Launcher::new(PathBuf::from("./work").as_path(), true).await?; let profile = Profile { version_id: "1.21.4".into(), java_runtime: None, instance: "".into() }; launcher.prepare_launch(&profile).await?; println!("ok"); Ok(()) }