Skip to content

Commit 83d2301

Browse files
committed
Fix macOS build
1 parent 87bbe1d commit 83d2301

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"dependencies": {
1010
"@tauri-apps/api": "^2.7.0",
1111
"@tauri-apps/plugin-deep-link": "^2.4.1",
12-
"@tauri-apps/plugin-dialog": "^2.3.2",
13-
"@tauri-apps/plugin-opener": "^2.4.0",
12+
"@tauri-apps/plugin-dialog": "^2.4.0",
13+
"@tauri-apps/plugin-opener": "^2.5.0",
1414
"@tauri-apps/plugin-os": "^2.3.0",
1515
"@tauri-apps/plugin-shell": "^2.3.0",
1616
"pino": "^9.7.0",

src-tauri/cloud_saves/src/backup_manager.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ impl BackupManager<'_> {
2727
current_platform: Platform::Windows,
2828

2929
#[cfg(target_os = "macos")]
30-
current_platform: Platform::MacOs,
30+
current_platform: Platform::macOS,
3131

3232
#[cfg(target_os = "linux")]
3333
current_platform: Platform::Linux,
@@ -43,7 +43,7 @@ impl BackupManager<'_> {
4343
&LinuxBackupManager {} as &(dyn BackupHandler + Sync + Send),
4444
),
4545
(
46-
(Platform::MacOs, Platform::MacOs),
46+
(Platform::macOS, Platform::macOS),
4747
&MacBackupManager {} as &(dyn BackupHandler + Sync + Send),
4848
),
4949
]),

src-tauri/database/src/platform.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@ use serde::{Deserialize, Serialize};
44
pub enum Platform {
55
Windows,
66
Linux,
7-
MacOs,
7+
macOS,
88
}
99

1010
impl Platform {
1111
#[cfg(target_os = "windows")]
1212
pub const HOST: Platform = Self::Windows;
1313
#[cfg(target_os = "macos")]
14-
pub const HOST: Platform = Self::MacOs;
14+
pub const HOST: Platform = Self::macOS;
1515
#[cfg(target_os = "linux")]
1616
pub const HOST: Platform = Self::Linux;
1717

1818
pub fn is_case_sensitive(&self) -> bool {
1919
match self {
20-
Self::Windows | Self::MacOs => false,
20+
Self::Windows | Self::macOS => false,
2121
Self::Linux => true,
2222
}
2323
}
@@ -28,7 +28,7 @@ impl From<&str> for Platform {
2828
match value.to_lowercase().trim() {
2929
"windows" => Self::Windows,
3030
"linux" => Self::Linux,
31-
"mac" | "macos" => Self::MacOs,
31+
"mac" | "macos" => Self::macOS,
3232
_ => unimplemented!(),
3333
}
3434
}
@@ -39,7 +39,7 @@ impl From<whoami::Platform> for Platform {
3939
match value {
4040
whoami::Platform::Windows => Platform::Windows,
4141
whoami::Platform::Linux => Platform::Linux,
42-
whoami::Platform::MacOS => Platform::MacOs,
42+
whoami::Platform::MacOS => Platform::macOS,
4343
platform => unimplemented!("Playform {} is not supported", platform),
4444
}
4545
}

src-tauri/process/src/process_manager.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ impl ProcessManager<'_> {
5454
current_platform: Platform::Windows,
5555

5656
#[cfg(target_os = "macos")]
57-
current_platform: Platform::MacOs,
57+
current_platform: Platform::macOS,
5858

5959
#[cfg(target_os = "linux")]
6060
current_platform: Platform::Linux,
@@ -72,7 +72,7 @@ impl ProcessManager<'_> {
7272
&NativeGameLauncher {} as &(dyn ProcessHandler + Sync + Send + 'static),
7373
),
7474
(
75-
(Platform::MacOs, Platform::MacOs),
75+
(Platform::macOS, Platform::macOS),
7676
&NativeGameLauncher {} as &(dyn ProcessHandler + Sync + Send + 'static),
7777
),
7878
(

0 commit comments

Comments
 (0)