build: Snap versions should not have initial "v"

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3728
This commit is contained in:
Jakob Borg 2016-11-12 08:36:19 +00:00
parent 59f3d1445f
commit 72538e350d
1 changed files with 7 additions and 3 deletions

View File

@ -542,8 +542,12 @@ func buildSnap(target target) {
if snaparch == "armhf" {
goarch = "arm"
}
snapver := version
if strings.HasPrefix(snapver, "v") {
snapver = snapver[1:]
}
err = tmpl.Execute(f, map[string]string{
"Version": version,
"Version": snapver,
"Architecture": snaparch})
if err != nil {
log.Fatal(err)