Skip to content

Commit

Permalink
cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
amr-crabnebula committed Nov 17, 2023
1 parent 522ef21 commit 5e20b4a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion examples/tauri-with-updater/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ fn check_update<R: Runtime>(app: AppHandle<R>) -> Result<(bool, Option<String>),
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)
Expand Down

0 comments on commit 5e20b4a

Please sign in to comment.