You've already forked AstralRinth
forked from didirus/AstralRinth
Navbar wireup (#98)
* Navbar wireup * Fix height issue * Fix syncing * working branch * Added root directories to breadcrumbs * fix jre detect --------- Co-authored-by: Jai A <jaiagr+gpg@pm.me>
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
)]
|
||||
|
||||
use dunce::canonicalize;
|
||||
use theseus::jre::autodetect_java_globals;
|
||||
use theseus::prelude::*;
|
||||
use theseus::profile_create::profile_create;
|
||||
use tokio::time::{sleep, Duration};
|
||||
@@ -32,8 +33,9 @@ async fn main() -> theseus::Result<()> {
|
||||
|
||||
// Initialize state
|
||||
let st = State::get().await?;
|
||||
State::update();
|
||||
//State::update();
|
||||
|
||||
st.settings.write().await.java_globals = autodetect_java_globals().await?;
|
||||
st.settings.write().await.max_concurrent_downloads = 5;
|
||||
st.settings.write().await.hooks.post_exit =
|
||||
Some("echo This is after Minecraft runs- global setting!".to_string());
|
||||
@@ -53,7 +55,7 @@ async fn main() -> theseus::Result<()> {
|
||||
|
||||
let name = "Example".to_string();
|
||||
let game_version = "1.19.2".to_string();
|
||||
let modloader = ModLoader::Fabric;
|
||||
let modloader = ModLoader::Vanilla;
|
||||
let loader_version = "stable".to_string();
|
||||
|
||||
let profile_path = profile_create(
|
||||
@@ -88,7 +90,7 @@ async fn main() -> theseus::Result<()> {
|
||||
//
|
||||
// profile::remove_project(&profile_path, &mod_menu_path).await?;
|
||||
// let profile_path =
|
||||
// pack::install_pack_from_version_id("KxUUUFh5".to_string())
|
||||
// pack::install_pack_from_version_id("zroFQG1k".to_string())
|
||||
// .await
|
||||
// .unwrap();
|
||||
|
||||
@@ -126,7 +128,9 @@ async fn main() -> theseus::Result<()> {
|
||||
println!("Waiting 20 seconds to gather logs...");
|
||||
sleep(Duration::from_secs(20)).await;
|
||||
let stdout = process::get_stdout_by_uuid(&uuid).await?;
|
||||
let stderr = process::get_stderr_by_uuid(&uuid).await?;
|
||||
println!("Logs after 5sec <<< {stdout} >>> end stdout");
|
||||
println!("Logs after 5sec <<< {stderr} >>> end stderr");
|
||||
|
||||
println!(
|
||||
"All running process UUID {:?}",
|
||||
|
||||
Reference in New Issue
Block a user