From 5e20b4a52bbfddd660f91316b789e8ce87da317f Mon Sep 17 00:00:00 2001 From: amr-crabnebula Date: Fri, 17 Nov 2023 03:59:58 +0200 Subject: [PATCH] cfg --- examples/tauri-with-updater/src/main.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/examples/tauri-with-updater/src/main.rs b/examples/tauri-with-updater/src/main.rs index f712041f..632f8d8e 100644 --- a/examples/tauri-with-updater/src/main.rs +++ b/examples/tauri-with-updater/src/main.rs @@ -24,7 +24,13 @@ fn check_update(app: AppHandle) -> Result<(bool, Option), let updater = { #[allow(unused_mut)] let mut updater_builder = UpdaterBuilder::new(app.package_info().version.clone(), config); - #[cfg(target_os = "linux")] + #[cfg(any( + target_os = "linux", + target_os = "dragonfly", + target_os = "freebsd", + target_os = "netbsd", + target_os = "openbsd" + ))] { if let Some(appimage) = app.env().appimage { updater_builder = updater_builder.executable_path(appimage)