mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-10-20 23:11:24 +02:00
- `tempdir_in(..)?` and `metadata()?` returned early on the first location that failed (e.g. a non-writable `/tmp`), so the cache dir and the directory next to the AppImage were never tried. Failures now move on to the next location, as the deb/rpm path already did. - The candidate list was duplicated between the AppImage and deb/rpm paths; both now use `tmp_dir_locations`, which also no longer unwraps the parent of the app path (`extract_path.parent().unwrap()`). Compile-checked with clippy in a Linux container (default features). plugins/updater/src/updater.rs
342 B
342 B
updater, updater-js
| updater | updater-js |
|---|---|
| patch | patch |
On Linux, try the next temporary directory location (the user cache directory, then the directory holding the AppImage) when a temporary directory cannot be created in the previous one, instead of failing the AppImage update right away. Also avoids a panic when the app path has no parent directory.