Only build ARMv5 (fixes #1218)

With this change, the build system only builds one ARM variant - ARMv5.
We call the build architecture simply "arm", as this is what
runtime.GOARCH says.
This commit is contained in:
Jakob Borg
2015-01-09 10:21:30 +01:00
parent e03d59e381
commit 961a87b743
7 changed files with 19 additions and 107 deletions

View File

@@ -18,6 +18,8 @@ package upgrade
import (
"errors"
"fmt"
"runtime"
"strconv"
"strings"
@@ -225,3 +227,12 @@ func versionParts(v string) ([]int, []interface{}) {
return release, prerelease
}
func releaseName(tag string) string {
switch runtime.GOOS {
case "darwin":
return fmt.Sprintf("syncthing-macosx-%s-%s.", runtime.GOARCH, tag)
default:
return fmt.Sprintf("syncthing-%s-%s-%s.", runtime.GOOS, runtime.GOARCH, tag)
}
}