diff --git a/package.json b/package.json index 2007b0f..676ac31 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,8 @@ "dependencies": { "@tauri-apps/api": "^2.7.0", "@tauri-apps/plugin-deep-link": "^2.4.1", - "@tauri-apps/plugin-dialog": "^2.3.2", - "@tauri-apps/plugin-opener": "^2.4.0", + "@tauri-apps/plugin-dialog": "^2.4.0", + "@tauri-apps/plugin-opener": "^2.5.0", "@tauri-apps/plugin-os": "^2.3.0", "@tauri-apps/plugin-shell": "^2.3.0", "pino": "^9.7.0", diff --git a/src-tauri/cloud_saves/src/backup_manager.rs b/src-tauri/cloud_saves/src/backup_manager.rs index db8e9f2..3527672 100644 --- a/src-tauri/cloud_saves/src/backup_manager.rs +++ b/src-tauri/cloud_saves/src/backup_manager.rs @@ -27,7 +27,7 @@ impl BackupManager<'_> { current_platform: Platform::Windows, #[cfg(target_os = "macos")] - current_platform: Platform::MacOs, + current_platform: Platform::macOS, #[cfg(target_os = "linux")] current_platform: Platform::Linux, @@ -43,7 +43,7 @@ impl BackupManager<'_> { &LinuxBackupManager {} as &(dyn BackupHandler + Sync + Send), ), ( - (Platform::MacOs, Platform::MacOs), + (Platform::macOS, Platform::macOS), &MacBackupManager {} as &(dyn BackupHandler + Sync + Send), ), ]), diff --git a/src-tauri/database/src/platform.rs b/src-tauri/database/src/platform.rs index 10c95f4..ce0b566 100644 --- a/src-tauri/database/src/platform.rs +++ b/src-tauri/database/src/platform.rs @@ -4,20 +4,20 @@ use serde::{Deserialize, Serialize}; pub enum Platform { Windows, Linux, - MacOs, + macOS, } impl Platform { #[cfg(target_os = "windows")] pub const HOST: Platform = Self::Windows; #[cfg(target_os = "macos")] - pub const HOST: Platform = Self::MacOs; + pub const HOST: Platform = Self::macOS; #[cfg(target_os = "linux")] pub const HOST: Platform = Self::Linux; pub fn is_case_sensitive(&self) -> bool { match self { - Self::Windows | Self::MacOs => false, + Self::Windows | Self::macOS => false, Self::Linux => true, } } @@ -28,7 +28,7 @@ impl From<&str> for Platform { match value.to_lowercase().trim() { "windows" => Self::Windows, "linux" => Self::Linux, - "mac" | "macos" => Self::MacOs, + "mac" | "macos" => Self::macOS, _ => unimplemented!(), } } @@ -39,7 +39,7 @@ impl From for Platform { match value { whoami::Platform::Windows => Platform::Windows, whoami::Platform::Linux => Platform::Linux, - whoami::Platform::MacOS => Platform::MacOs, + whoami::Platform::MacOS => Platform::macOS, platform => unimplemented!("Playform {} is not supported", platform), } } diff --git a/src-tauri/process/src/process_manager.rs b/src-tauri/process/src/process_manager.rs index 6fce4fe..ec3062b 100644 --- a/src-tauri/process/src/process_manager.rs +++ b/src-tauri/process/src/process_manager.rs @@ -54,7 +54,7 @@ impl ProcessManager<'_> { current_platform: Platform::Windows, #[cfg(target_os = "macos")] - current_platform: Platform::MacOs, + current_platform: Platform::macOS, #[cfg(target_os = "linux")] current_platform: Platform::Linux, @@ -72,7 +72,7 @@ impl ProcessManager<'_> { &NativeGameLauncher {} as &(dyn ProcessHandler + Sync + Send + 'static), ), ( - (Platform::MacOs, Platform::MacOs), + (Platform::macOS, Platform::macOS), &NativeGameLauncher {} as &(dyn ProcessHandler + Sync + Send + 'static), ), (