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