You've already forked AstralRinth
forked from xxxOFFxxx/AstralRinth
* basic push * actual push * JRE detection, and autosetting * removed a println, retrying CI/CD * new game version compare; preset java 7 and 8 using our jre * 1.8 mislabeled * working JRE changes * fixed bugs with JRE setup * fixed bugs with JRE setup * manual merge * prettier * fixes + jre 17 * clippy, prettier * typo * forgot to hook up a function * pr fix + comment fix * added loader_version * take 2
69 lines
2.5 KiB
Rust
69 lines
2.5 KiB
Rust
#![cfg_attr(
|
|
all(not(debug_assertions), target_os = "windows"),
|
|
windows_subsystem = "windows"
|
|
)]
|
|
|
|
use theseus::prelude::*;
|
|
|
|
mod api;
|
|
|
|
// Should be called in launcher initialization
|
|
#[tauri::command]
|
|
async fn initialize_state() -> api::Result<()> {
|
|
State::get().await?;
|
|
Ok(())
|
|
}
|
|
|
|
fn main() {
|
|
tauri::Builder::default()
|
|
.invoke_handler(tauri::generate_handler![
|
|
initialize_state,
|
|
api::profile_create::profile_create_empty,
|
|
api::profile_create::profile_create,
|
|
api::profile::profile_remove,
|
|
api::profile::profile_get,
|
|
api::profile::profile_list,
|
|
api::profile::profile_run,
|
|
api::profile::profile_run_wait,
|
|
api::pack::pack_install_version_id,
|
|
api::pack::pack_install_file,
|
|
api::auth::auth_authenticate_begin_flow,
|
|
api::auth::auth_authenticate_await_completion,
|
|
api::auth::auth_refresh,
|
|
api::auth::auth_remove_user,
|
|
api::auth::auth_has_user,
|
|
api::auth::auth_users,
|
|
api::auth::auth_get_user,
|
|
api::tags::tags_get_categories,
|
|
api::tags::tags_get_donation_platforms,
|
|
api::tags::tags_get_game_versions,
|
|
api::tags::tags_get_loaders,
|
|
api::tags::tags_get_licenses,
|
|
api::tags::tags_get_report_types,
|
|
api::tags::tags_get_tag_bundle,
|
|
api::settings::settings_get,
|
|
api::settings::settings_set,
|
|
api::jre::jre_get_all_jre,
|
|
api::jre::jre_autodetect_java_globals,
|
|
api::jre::jre_find_jre_18plus_jres,
|
|
api::jre::jre_find_jre_17_jres,
|
|
api::jre::jre_find_jre_8_jres,
|
|
api::jre::jre_validate_globals,
|
|
api::jre::jre_get_optimal_jre_key,
|
|
api::jre::jre_get_optimal_jre_key_by_path,
|
|
api::process::process_get_all_pids,
|
|
api::process::process_get_all_running_pids,
|
|
api::process::process_get_pids_by_profile_path,
|
|
api::process::process_get_all_running_profile_paths,
|
|
api::process::process_get_all_running_profiles,
|
|
api::process::process_get_exit_status_by_pid,
|
|
api::process::process_has_finished_by_pid,
|
|
api::process::process_get_stderr_by_pid,
|
|
api::process::process_get_stdout_by_pid,
|
|
api::process::process_kill_by_pid,
|
|
api::process::process_wait_for_by_pid,
|
|
])
|
|
.run(tauri::generate_context!())
|
|
.expect("error while running tauri application");
|
|
}
|