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:
Lucas Fernandes Nogueira authored and GitHub committed 2026-10-11 16:05:25 -03:00
1 parent f2af373b6a
commit 4b1ba07943
2 files changed
+8 -1

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
---
updater: patch
updater-js: patch
---
On Android and iOS, `Update::install` now returns `Error::UnsupportedOs` instead of reporting success without installing anything.