go-selfupdate
go-selfupdate copied to clipboard
Enable your Go applications to self update
no server, how auto update from GitHub release? thanks
Is is possible to restart the app after it updates to new version, specifically in Windows?
This handy when you want to expose what occurred within the update (or check).
I did some rudimentary testing of this --- used it on different versions of a Go executable I'm familiar with, verified that nothing crashed, that the expected files were produced,...
It is not mystery that each release of macOS has increased the default level of security. The latest one won't even run any binaries that is not notarized. Since notarization...
I use github releases for my builds. Is there a way to use this with github releases and update when a new published version is available there? That would be...
If you run your commands from a symlink, we need to resolve the full symlink path, otherwise we'll just end up replacing the symlink itself and not the binary it...
When checking out this module I noticed some failing test. Inspired by https://github.com/sanbornm/go-selfupdate/pull/32 I switched the Requester to be mocked by gomock and made the tests platform agnostic. Also tested...
The `os.Open` call does not return `os.ErrNotExist`. But its error can be checked with `os.IsNotExist()` function.
``` func (u *Updater) wantUpdate() bool { path := u.getExecRelativeDir(u.Dir + upcktimePath) if u.CurrentVersion == "dev" || readTime(path).After(time.Now()) { return false } wait := 24*time.Hour + randDuration(24*time.Hour) return writeTime(path, time.Now().Add(wait))...