Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

contriboss/go-update

Repository files navigation

go-update: Build self-updating Go programs

Go Reference

Fork of inconshreveable/go-update (unmaintained since 2016).

Package update provides functionality to implement secure, self-updating Go programs (or other single-file targets) A program can update itself by replacing its executable file with a new version.

It provides the flexibility to implement different updating user experiences like auto-updating, or manual user-initiated updates. It also boasts advanced features like binary patching and code signing verification.

Example of updating from a URL:

import (
 "net/http"
 "github.com/contriboss/go-update"
)
func doUpdate(url string) error {
 resp, err := http.Get(url)
 if err != nil {
 return err
 }
 defer resp.Body.Close()
 return update.Apply(resp.Body, update.Options{})
}

Features

  • Cross platform support (Windows too!)
  • Binary patch application
  • Checksum verification
  • Code signing verification
  • Support for updating arbitrary files

Installation

go get github.com/contriboss/go-update

Requires Go 1.25+.

License

Apache

About

Build self-updating Golang programs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 5

Languages

AltStyle によって変換されたページ (->オリジナル) /