-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ipfs-update should update itself #59
Comments
And |
The |
This is a bit problematic on Windows as you can't replace the binary your are currently running. What you have to do is have two binaries (
|
@Kubuxu there is a library for doing self-updates in golang that I've had success with using in the past, https://github.com/inconshreveable/go-update We could use that (and maybe even be able to provide the self-updates via IPFS) |
On Windows you can rename that binary and write new one with the old name while the process is still running. After process exits, the old renamed binary can be safely deleted. |
So the algorithm:
|
When we run ipfs update, if ipfs-update does not exist. |
ipfs-update should update itself, too. it's annoying to have to go download it.
The text was updated successfully, but these errors were encountered: