From b5ec5913222e5e3be9ab81c1d98f97d2b9bc2b30 Mon Sep 17 00:00:00 2001 From: Jamie Pine Date: Wed, 10 Dec 2025 17:46:47 -0800 Subject: [PATCH] Always copy daemon to target path --- apps/tauri/src-tauri/build.rs | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/apps/tauri/src-tauri/build.rs b/apps/tauri/src-tauri/build.rs index ed4dda228..9a1e8ccac 100644 --- a/apps/tauri/src-tauri/build.rs +++ b/apps/tauri/src-tauri/build.rs @@ -67,20 +67,12 @@ fn main() { let daemon_target = format!("{}/target/{}/sd-daemon-{}", workspace_dir, profile, target_triple); if std::path::Path::new(&daemon_source).exists() { - // Remove existing symlink/file if it exists + // Remove existing file if it exists let _ = std::fs::remove_file(&daemon_target); - #[cfg(unix)] - { - std::os::unix::fs::symlink(&daemon_source, &daemon_target) - .unwrap_or_else(|e| eprintln!("Warning: Failed to create daemon symlink: {}", e)); - } - - #[cfg(windows)] - { - std::fs::copy(&daemon_source, &daemon_target) - .unwrap_or_else(|e| eprintln!("Warning: Failed to copy daemon: {}", e)); - } + // Copy the daemon binary with target architecture suffix + std::fs::copy(&daemon_source, &daemon_target) + .unwrap_or_else(|e| eprintln!("Warning: Failed to copy daemon: {}", e)); } tauri_build::build()