diff --git a/src/native/mod.rs b/src/native/mod.rs index 967b7a9..5f7e13d 100644 --- a/src/native/mod.rs +++ b/src/native/mod.rs @@ -314,6 +314,7 @@ mod natives { target: &str, args: &str, working_dir: &str, + exe_path: &str, ) -> Result { // FIXME: no icon will be shown since no icon is provided let data_local_dir = dirs::data_local_dir(); diff --git a/src/tasks/install_desktop_shortcut.rs b/src/tasks/install_desktop_shortcut.rs index 58cb797..f4d71f3 100644 --- a/src/tasks/install_desktop_shortcut.rs +++ b/src/tasks/install_desktop_shortcut.rs @@ -11,6 +11,7 @@ use config::PackageDescription; use logging::LoggingErrors; +#[cfg(windows)] use native::create_desktop_shortcut; pub struct InstallDesktopShortcutTask { @@ -70,6 +71,7 @@ impl Task for InstallDesktopShortcutTask { "maintenancetool" }; + #[cfg(windows)] for shortcut in package.shortcuts { let tool_path = path.join(platform_extension); let tool_path = tool_path