3 ms·
this won't work on windows will it?
by dickeytk 7y ago
this won't work on windows will it?
- lpghatguy 7y agoAn issue was filed about what platforms the project supports[1] and it appears to work on Windows. [1]: https://github.com/jaemk/self_update/issues/21 https://github.com/jaemk/self_update/issues/21
- thijsvandien 7y agoWhile Windows does not support replacing an open executable, it does support moving/renaming it, so you can get it out of the way and clean it up later.
- asveikau 7y agoAlso: I solved this problem before by copying the binary to a different location, then launching in the alternate location it to copy itself over top the original. Then the newly launched one in the old location deleted the temporary copy. [Man, this sounds clumsy to describe. But it worked!]