mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-10-20 23:11:24 +02:00
fix(updater): report install as unsupported on mobile (#3695)
`#[cfg(mobile)] fn install_inner` returned `Ok(())` without doing anything. `check` already fails with `UnsupportedOs` there unless a Rust caller sets a custom target, in which case a download was followed by a successful "install" that did nothing. It now returns `Error::UnsupportedOs`, the error `check` uses. Verified with clippy for aarch64-linux-android (the iOS build needs the Swift package, which does not build here). plugins/updater/src/updater.rs
This commit is contained in:
1 parent
f2af373b6a
commit
4b1ba07943
2 files changed
+8
-1
No files matched your search
@@ -928,9 +928,10 @@ impl Update {
|
||||
self.install_inner(&bytes)
|
||||
}
|
||||
|
||||
/// Updates are not supported on mobile, where apps are updated through the app stores.
|
||||
#[cfg(mobile)]
|
||||
fn install_inner(&self, _bytes: &[u8]) -> Result<()> {
|
||||
Ok(())
|
||||
Err(Error::UnsupportedOs)
|
||||
}
|
||||
|
||||
/// Whether the Windows installer should restart the app after installed, default is `true`
|
||||
|
||||
Reference in new issue
Block a user