Files
tauri-plugins-workspace/plugins
Lucas Fernandes Nogueira f2af373b6a fix(updater): check the AppImage update payload before installing it (#3696)
* fix(updater): check the AppImage update payload before installing it

Without the `zip` feature the gz check was compiled out and a signed
`.tar.gz` was written verbatim over the AppImage, and any other payload
without the gz magic (e.g. a `.deb` from the same release, or the fallthrough
when `bundle_type()` is `None`) was written the same way, corrupting the app.

The payload is now checked before the current AppImage is moved: a gzip
archive requires the `zip` feature, and anything else must be an ELF
executable (which every AppImage is); otherwise `InvalidUpdaterFormat` is
returned. The `Cursor`/`OsStr` imports are gated so that the crate builds
warning-free without `zip` on Linux too.

Compile-checked with clippy on macOS, Linux (container) and Windows, each
with and without the `zip` feature.

plugins/updater/src/updater.rs

* tests
2026-10-11 16:05:01 -03:00
..
2026-10-10 12:50:18 -03:00
2026-09-26 17:21:49 -03:00
2026-10-10 12:50:18 -03:00
2026-10-10 12:50:18 -03:00
2026-10-10 12:50:18 -03:00
2026-10-10 12:50:18 -03:00
2026-10-10 12:50:18 -03:00
2026-10-10 12:50:18 -03:00
2026-10-10 12:50:18 -03:00
2026-10-10 12:50:18 -03:00
2026-09-26 17:21:49 -03:00
2026-09-26 17:21:49 -03:00
2026-10-10 12:50:18 -03:00
2026-09-26 17:21:49 -03:00
2026-09-26 17:21:49 -03:00