Open vangork opened 1 month ago
Just a reference, some thoughts from https://github.com/tauri-apps/plugins-workspace/issues/1014
I am not using the updater plugin to download and install the update implicitly but just use the plugin to check update availability and guide users to download the nsis bundle from external browser and install explicitly. In this case, the termination would need to be sent from nsis bundle intead of the updater plugin. @Legend-Master
Yeah, I was thinking the same, for a graceful shutdown, we need some way of communicating between the installer and the app to do that, or maybe just kill all the child processes for a quick fix (do it in nsis or change side car to use Job Object)
Describe the bug
If the tauri app is runing with a spawned background sidecar process, when clicking the nsis bundle to upgrade the tauri app it would pop up a window asking to close the tauri app("xxx is runing. Click OK to close it"). But the spawned sidecar process won't be terminated after the OK button is clicked.
Shall we call tauri cleanup so that "RunEvent::Exit" or "RunEvent::ExitRequest" event handler could be called, or call "taskkill /f /t " to terminate the tauri app process tree so that all the child process would be killed together like described in https://github.com/electron-userland/electron-builder/issues/2516.
Reproduction
No response
Expected behavior
No response
Full
tauri info
outputStack trace
No response
Additional context
No response