Skip to content

Commit

Permalink
Fix windows code
Browse files Browse the repository at this point in the history
  • Loading branch information
luxluth committed Jun 30, 2024
1 parent 70b70c9 commit 64303cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ use tracing::info;
use tracing_subscriber::FmtSubscriber;

const VERSION: &str = env!("CARGO_PKG_VERSION");
#[cfg(target_os = "linux")]
const LINUX_SYSTEMD: &str = include_str!("./systemd/lorchestre.service");
#[cfg(target_os = "macos")]
const MACOS_LAUNCHD: &str = include_str!("./launchd/dev.luxluth.lorchestre.plist");
Expand Down Expand Up @@ -93,7 +94,8 @@ fn init_service(bin_path: String) -> Result<(), Box<dyn std::error::Error>> {

std::process::Command::new(&bin_path)
.arg("daemon")
.spawn()?
.spawn()?;
Ok(())
}

#[tauri::command]
Expand Down

0 comments on commit 64303cd

Please sign in to comment.