Implementing lighty launcher

This commit is contained in:
2026-04-03 20:58:08 +02:00
parent eed6069685
commit cd8c9c464a
5 changed files with 1081 additions and 47 deletions
+3 -3
View File
@@ -1,6 +1,7 @@
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
use lighty_launcher::tauri::lighty_plugin;
use saturn_launcher_lib::{commands::*, AppState};
use std::sync::Mutex;
@@ -8,15 +9,14 @@ use std::sync::Mutex;
fn main() {
tauri::Builder::default()
.plugin(tauri_plugin_opener::init())
.plugin(lighty_plugin())
.manage(Mutex::new(AppState::default()))
.invoke_handler(tauri::generate_handler![
get_versions,
get_installed_mods,
toggle_mod,
install_mod,
get_settings,
update_settings,
launch_game
update_settings
])
.run(tauri::generate_context!())
.expect("error while running tauri application");