Build Debian armhf and armel
This commit is contained in:
parent
8b0037ffab
commit
a2b94f4e06
16
build.go
16
build.go
|
@ -278,6 +278,17 @@ func buildZip() {
|
||||||
func buildDeb() {
|
func buildDeb() {
|
||||||
os.RemoveAll("deb")
|
os.RemoveAll("deb")
|
||||||
|
|
||||||
|
// "goarch" here is set to whatever the Debian packages expect. We correct
|
||||||
|
// "it to what we actually know how to build and keep the Debian variant
|
||||||
|
// "name in "debarch".
|
||||||
|
debarch := goarch
|
||||||
|
switch goarch {
|
||||||
|
case "i386":
|
||||||
|
goarch = "386"
|
||||||
|
case "armel", "armhf":
|
||||||
|
goarch = "arm"
|
||||||
|
}
|
||||||
|
|
||||||
build("./cmd/syncthing", []string{"noupgrade"})
|
build("./cmd/syncthing", []string{"noupgrade"})
|
||||||
|
|
||||||
files := []archiveFile{
|
files := []archiveFile{
|
||||||
|
@ -297,11 +308,6 @@ func buildDeb() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
debarch := goarch
|
|
||||||
if debarch == "386" {
|
|
||||||
debarch = "i386"
|
|
||||||
}
|
|
||||||
|
|
||||||
control := `Package: syncthing
|
control := `Package: syncthing
|
||||||
Architecture: {{arch}}
|
Architecture: {{arch}}
|
||||||
Depends: libc6
|
Depends: libc6
|
||||||
|
|
Loading…
Reference in New Issue