self_update
self_update copied to clipboard
update `extract_into()`, add example for bundles and add `restart()` method
Addresses #145.
I had to update the extract_into() method such that it works for bundles/directories that are zipped.
Additionally, I added an example in the README.md to describe the usage with bundles (specifically on macOS). For this example, we might consider putting the copy_dir() also in this library, but for now I leave it like that.
Furthermore, I included the restart.rs file with a restart() method that launches a zombie process of the own instance, allowing users to automatically restart the application after self_replace() has been called.
Can this be merged?
^bump