From ff428f36935cefd2b6d8ea6ba4a0572d75d6512d Mon Sep 17 00:00:00 2001 From: bigfoot547 Date: Mon, 13 Jan 2025 20:58:36 -0600 Subject: library downloads complete --- ozone-cli/src/main.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ozone-cli') diff --git a/ozone-cli/src/main.rs b/ozone-cli/src/main.rs index dbe591a..67932da 100644 --- a/ozone-cli/src/main.rs +++ b/ozone-cli/src/main.rs @@ -2,6 +2,7 @@ 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> { @@ -12,6 +13,12 @@ async fn main() -> Result<(), Box> { 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(()) -- cgit v1.2.3-70-g09d2