Skip to content

Commit 19a5b1f

Browse files
committed
fix: add cfg(target_os = "macos") to macOS-only code
1 parent fc25204 commit 19a5b1f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src-tauri/src/commands/first_run.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ pub fn is_dev_mode() -> bool {
124124
}
125125

126126
/// Check if the app is running in development mode (sync version for internal use).
127+
#[cfg(target_os = "macos")]
127128
fn is_dev_mode_internal() -> bool {
128129
// Check if running from a development path
129130
if let Ok(exe_path) = std::env::current_exe() {
@@ -305,6 +306,7 @@ pub async fn move_to_applications_folder() -> Result<bool, String> {
305306
/// - `Err(...)` if an error occurred
306307
#[tauri::command]
307308
pub async fn prompt_move_to_applications(app: AppHandle) -> Result<bool, String> {
309+
#[cfg(target_os = "macos")]
308310
use tauri_plugin_dialog::{DialogExt, MessageDialogButtons, MessageDialogKind};
309311

310312
// Only relevant on macOS

0 commit comments

Comments
 (0)