mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-10-18 23:07:27 +02:00
* 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