Failed to move the new app into place Error during downloadAndInstall method
I am encountering an issue when using the downloadAndInstall method from the tauri-plugin-updater in my Tauri application. The download part works fine, and the application updates are correctly downloaded to the specified path. However, when it attempts to install the update, I receive the following error:
Failed to move the new app into place
Steps to Reproduce: Trigger the update check using check() method.
If an update is found, call downloadAndInstall() to download and install the update.
The download progresses normally, and the new app file is downloaded.
Upon attempting to install the update, the error is thrown: "Failed to move the new app into place."
Expected Behavior: The application should successfully install the downloaded update and move the new app into the appropriate location, without errors.
Actual Behavior: The download completes successfully, but when the install() function is called, it fails with the "Failed to move the new app into place" error.
Additional Information: The issue occurs on macOS.
I have confirmed that the necessary permissions are granted, and the application has the correct rights to modify the files and execute them.
No specific file or directory permissions are reported as causing the issue.
Environment: Tauri version: v2.x
tauri-plugin-updater version: v2.x
Operating System: macOS
Any additional relevant details (like app config, permissions, etc.)
Potential Ideas: It seems that there might be an issue with moving or replacing the application binary during the install process. Maybe it is related to file locks, application permissions, or other system-specific restrictions on macOS.
I would appreciate any guidance on resolving this issue or if anyone has encountered a similar problem.
Is the app and the temp folder on the same drive?
Is the app and the temp folder on the same drive?
I am not making any configuration regarding the temp folder. Is there a document regarding the temp folder?
let me ask it differently then, is the app running on your "main" disk where preinstalled macos apps etc are installed? There are/were issues for example with removable media (== app was installed on an usb storage device)
let me ask it differently then, is the app running on your "main" disk where preinstalled macos apps etc are installed? There are/were issues for example with removable media (== app was installed on an usb storage device)
It is intalled and runs under the /Applications directory on my computer's main disk. I have never run it with an external device.
I see the same issue appearing for some users.
I also have this issue. Has anyone found any workarounds?
I had to remove:
<key>com.apple.security.app-sandbox</key>
<true/>
from my Entitlements.plist