Skip to content

No longer accepts input from terminal after restart with --auto-update on Windows #151

@niklasf

Description

@niklasf

When a new release is available, the current binary is replaced with the updated version. But how to restart properly?

On Unix it's easy to use exec() to replace the current process image:
https://github.com/niklasf/fishnet/blob/329c3eeeaa49c88589baea57282d9305e3217d40/src/main.rs#L351

So far I was not able to find an equivalent on Windows.

https://github.com/niklasf/fishnet/blob/329c3eeeaa49c88589baea57282d9305e3217d40/src/main.rs#L359


Upstream question: jaemk/self_update#62

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