fix: Pauline's refactoring

This commit is contained in:
LynithDev 2024-07-26 12:16:59 +02:00
parent 4481688ef7
commit 36aa0b658f
5 changed files with 17 additions and 9 deletions

View file

@ -23,17 +23,18 @@ version = "1.0.0"
onelauncher = { path = "./packages/core" } onelauncher = { path = "./packages/core" }
# tauri uses latest crates.io beta channel (temporarily can use v2 and main branches if necessary) # tauri uses latest crates.io beta channel (temporarily can use v2 and main branches if necessary)
tauri = { version = "=2.0.0-beta.24", features = [ tauri = { version = "=2.0.0-beta.23", features = [
"rustls-tls", "rustls-tls",
"tracing", "tracing",
"specta", "specta",
"uuid" "uuid"
] } ] }
tauri-utils = { version = "=2.0.0-beta.19" } tauri-utils = { version = "=2.0.0-beta.18" }
tauri-build = { version = "=2.0.0-beta.19" } tauri-build = { version = "=2.0.0-beta.18" }
tauri-codegen = { version = "=2.0.0-beta.19" } tauri-codegen = { version = "=2.0.0-beta.18" }
tauri-macros = { version = "=2.0.0-beta.19" } tauri-macros = { version = "=2.0.0-beta.18" }
tauri-plugin = { version = "=2.0.0-beta.19" } tauri-plugin = { version = "=2.0.0-beta.18" }
tauri-runtime = { version = "=2.0.0-beta.19" }
tauri-plugin-authenticator = { version = "2.0.0-beta" } tauri-plugin-authenticator = { version = "2.0.0-beta" }
tauri-plugin-shell = { version = "2.0.0-beta" } tauri-plugin-shell = { version = "2.0.0-beta" }
tauri-plugin-window-state = { version = "2.0.0-beta" } tauri-plugin-window-state = { version = "2.0.0-beta" }
@ -51,7 +52,7 @@ specta = { version = "=2.0.0-rc.12", features = [
"serde_json", "serde_json",
"function", "function",
] } ] }
# tauri-specta is updated via crates.io # tauri-specta is updated on main branch
tauri-specta = { version = "=2.0.0-rc.11", features = [ tauri-specta = { version = "=2.0.0-rc.11", features = [
"javascript", "javascript",
"typescript" "typescript"

View file

@ -39,6 +39,7 @@ tauri-build = { workspace = true }
tauri-codegen = { workspace = true } tauri-codegen = { workspace = true }
tauri-macros = { workspace = true } tauri-macros = { workspace = true }
tauri-plugin = { workspace = true } tauri-plugin = { workspace = true }
tauri-runtime = { workspace = true }
tauri-plugin-shell = { workspace = true } tauri-plugin-shell = { workspace = true }
tauri-plugin-window-state = { workspace = true } tauri-plugin-window-state = { workspace = true }
tauri-plugin-single-instance = { workspace = true } tauri-plugin-single-instance = { workspace = true }

View file

@ -11,25 +11,31 @@ fn main() {
"get_users", "get_users",
"get_user", "get_user",
"remove_user", "remove_user",
// Cluster // Cluster
"create_cluster", "create_cluster",
"remove_cluster", "remove_cluster",
"get_cluster", "get_cluster",
"get_clusters", "get_clusters",
"run_cluster", "run_cluster",
// Processor // Processor
"get_running_clusters", "get_running_clusters",
"get_processes_by_path", "get_processes_by_path",
"kill_process", "kill_process",
// Settings // Settings
"get_settings", "get_settings",
"set_settings", "set_settings",
// Metadata // Metadata
"get_minecraft_versions", "get_minecraft_versions",
// Package // Package
"random_mods", "random_mods",
"get_mod", "get_mod",
"download_mod", "download_mod",
// Other // Other
"get_program_info", "get_program_info",
]), ]),

View file

@ -58,7 +58,7 @@ pub async fn run_app<F: FnOnce(&mut tauri::App) + Send + 'static>(setup: F) {
let builder = collect_commands!(); let builder = collect_commands!();
#[cfg(debug_assertions)] #[cfg(debug_assertions)]
let builder = builder.path("../../frontend/src/bindings.ts"); let builder = builder.path("../frontend/src/bindings.ts");
builder.build().unwrap() builder.build().unwrap()
}); });

View file

@ -1,7 +1,7 @@
{ {
"$schema": "https://raw.githubusercontent.com/tauri-apps/tauri/dev/core/tauri-config-schema/schema.json", "$schema": "https://raw.githubusercontent.com/tauri-apps/tauri/dev/core/tauri-config-schema/schema.json",
"productName": "OneLauncher", "productName": "OneLauncher",
"identifier": "OneLauncher", "identifier": "org.polyfrost.launcher",
"app": { "app": {
"withGlobalTauri": true, "withGlobalTauri": true,
"macOSPrivateApi": true, "macOSPrivateApi": true,