-- Return UnsupportedOs for updater installation on FreeBSD. -- The Linux AppImage/deb installer is not applicable to FreeBSD. --- cargo-crates/tauri-plugin-updater-2.9.0/src/updater.rs.orig 2006-07-24 01:21:28 UTC +++ cargo-crates/tauri-plugin-updater-2.9.0/src/updater.rs @@ -837,13 +837,7 @@ impl Update { } /// Linux (AppImage and Deb) -#[cfg(any( - target_os = "linux", - target_os = "dragonfly", - target_os = "freebsd", - target_os = "netbsd", - target_os = "openbsd" -))] +#[cfg(target_os = "linux")] impl Update { /// ### Expected structure: /// ├── [AppName]_[version]_amd64.AppImage.tar.gz # GZ generated by tauri-bundler @@ -1091,6 +1085,14 @@ impl Update { let status = child.wait()?; Ok(status.success()) + } +} + +/// FreeBSD +#[cfg(target_os = "freebsd")] +impl Update { + fn install_inner(&self, _bytes: &[u8]) -> Result<()> { + Err(Error::UnsupportedOs) } }