diff options
Diffstat (limited to 'src-tauri/src/lib.rs')
-rw-r--r-- | src-tauri/src/lib.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 0e8adbf0..df83de80 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -233,10 +233,12 @@ async fn do_install(nmod: &thermite::model::Mod, game_path: &std::path::Path) -> } pub async fn install_northstar(game_path: &str) -> Result<String> { + let northstar_package_name = "Northstar".to_lowercase(); + let index = thermite::api::get_package_index().await.unwrap().to_vec(); let nmod = index .iter() - .find(|f| f.name.to_lowercase() == "northstar") + .find(|f| f.name.to_lowercase() == northstar_package_name) .ok_or_else(|| panic!("Couldn't find Northstar on thunderstore???")) .unwrap(); |