Add build flag to enable the update
A regular make will produce a build without the updater. An explicit -tags release is now required to bake the updater in.pull/71/head 0.8.0-beta
parent
76d5c2e5ff
commit
8ddee5f4bd
@ -0,0 +1,28 @@
|
||||
// +build !release
|
||||
|
||||
package main
|
||||
|
||||
import "errors"
|
||||
|
||||
type updateui struct {
|
||||
serverVersion string
|
||||
available bool
|
||||
triggered bool
|
||||
updatingText string
|
||||
}
|
||||
|
||||
func updateCheck(ctx *ntcontext) {
|
||||
|
||||
}
|
||||
|
||||
func update(ctx *ntcontext) {
|
||||
|
||||
}
|
||||
|
||||
func fetchFile(file string) ([]byte, error) {
|
||||
return make([]byte, 0), errors.New("Disabled by build flags")
|
||||
}
|
||||
|
||||
func publickey() []byte {
|
||||
return make([]byte, 0)
|
||||
}
|
Loading…
Reference in New Issue