tauri-apps / tauri-apps/plugins-workspace

[bug] update.downloadAndInstall does not work on removable volume [macOS]

Open
#1,983 1 comment 1 reaction 0 assignees View on GitHub
platform: macos plugin: updater type: bug
Dominant language
Rust
Stars
1.8k
Forks
602
Avg merge
4d 14h
Merged PRs (30d)
9

Description

### Describe the bug

I've added the updater plugin. Upon calling [downloadAndInstall](https://tauri.app/reference/javascript/updater/#downloadandinstall) on a build that is stored on a removable volume, everything completes without errors but the files on disk aren't updated. So when I reopen the app, the update is attempted again indefinitely.

Edit:
I've found the error.
```
Os { code: 18, kind: CrossesDevices, message: "Cross-device link" }
```
It is thrown [here](https://github.com/tauri-apps/plugins-workspace/blob/4341d7f500290165a94e05006abbfe7f40045fc9/plugins/updater/src/updater.rs#L862) when trying to rename the `extract_path` to the tmp folder.

Oddly this error doesn't make it to the frontend.
I guess one would have to create the tmp dir on the removable volume.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.