Skip to content

[feat] More event or api for updater #3605

@zzzgydi

Description

@zzzgydi

Describe the problem

I want to kill the sidecar when the app has been downloaded and is going to be installed. Because I noticed that the sidecar does not quit when the app exit.

If I write my code below. I should restart my sidecar when the installer failed. Not only that, when my sidecar is providing some kind of service, and the service has to be stopped during the app update.

await killSidecars();
await installUpdate();
await relaunch();

If I do this like below. The sidecar does not be killed...

await installUpdate();
await killSidecars();
await relaunch();

Describe the solution you'd like

I see a todo tag in the code here. It will be helpful for me if done.

Or if there is a event like tauri://update-download, maybe this will work too. (But this may have a problem)

Further considerations, will it support to get the download progress, it only support the update-status: [ERROR/PENDING/DONE] right now.

Alternatives considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions