mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-03 15:17:25 +00:00
build: Snap versions should not have initial "v"
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3728
This commit is contained in:
parent
59f3d1445f
commit
72538e350d
6
build.go
6
build.go
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user