mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-03 07:12:27 +00:00
build: Set snap grade "stable" for release candidates
This commit is contained in:
parent
1f586c0fdd
commit
63e0b53e8b
2
build.go
2
build.go
@ -585,7 +585,7 @@ func buildSnap(target target) {
|
|||||||
snapver = snapver[1:]
|
snapver = snapver[1:]
|
||||||
}
|
}
|
||||||
snapgrade := "devel"
|
snapgrade := "devel"
|
||||||
if matched, _ := regexp.MatchString(`^\d+\.\d+\.\d+$`, snapver); matched {
|
if matched, _ := regexp.MatchString(`^\d+\.\d+\.\d+(-rc.\d+)?$`, snapver); matched {
|
||||||
snapgrade = "stable"
|
snapgrade = "stable"
|
||||||
}
|
}
|
||||||
err = tmpl.Execute(f, map[string]string{
|
err = tmpl.Execute(f, map[string]string{
|
||||||
|
Loading…
Reference in New Issue
Block a user