summaryrefslogtreecommitdiffstats
path: root/ozone-cli
diff options
context:
space:
mode:
Diffstat (limited to 'ozone-cli')
-rw-r--r--ozone-cli/src/main.rs7
1 files changed, 7 insertions, 0 deletions
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<dyn Error>> {
@@ -12,6 +13,12 @@ async fn main() -> Result<(), Box<dyn Error>> {
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(())