CI: build repochecker and generate repochecker.version
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
parent
3bc8f0bf95
commit
38c18ef1aa
3 changed files with 58 additions and 2 deletions
|
@ -9,7 +9,7 @@ import (
|
|||
"net/http"
|
||||
)
|
||||
|
||||
const version = 0
|
||||
const version = 9
|
||||
|
||||
func init() {
|
||||
go checkUpdate()
|
||||
|
@ -24,7 +24,7 @@ func checkUpdate() {
|
|||
var v int
|
||||
if err := dec.Decode(&v); err == io.EOF || err == nil {
|
||||
if v > version {
|
||||
log.Println("Your repochecker version is outdated, please update it:\n wget https://srs.nemunai.re/repochecker")
|
||||
log.Println("Your repochecker version is outdated, please update it:\n https://srs.nemunai.re/fic-binaries/")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue