mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-22 22:58:25 +00:00
Build ARMv6 as well for RaspberryPi
This commit is contained in:
parent
dbe12cca4b
commit
dddf563105
15
build.sh
15
build.sh
@ -86,8 +86,7 @@ case "$1" in
|
|||||||
prepare
|
prepare
|
||||||
test || exit 1
|
test || exit 1
|
||||||
|
|
||||||
export GOARM=7
|
for os in darwin-amd64 linux-amd64 freebsd-amd64 windows-amd64 ; do
|
||||||
for os in darwin-amd64 linux-amd64 linux-arm freebsd-amd64 windows-amd64 ; do
|
|
||||||
export GOOS=${os%-*}
|
export GOOS=${os%-*}
|
||||||
export GOARCH=${os#*-}
|
export GOARCH=${os#*-}
|
||||||
|
|
||||||
@ -105,6 +104,18 @@ case "$1" in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
export GOOS=linux
|
||||||
|
export GOARCH=arm
|
||||||
|
|
||||||
|
export GOARM=7
|
||||||
|
build
|
||||||
|
tarDist "syncthing-linux-armv7-$version"
|
||||||
|
|
||||||
|
export GOARM=6
|
||||||
|
build
|
||||||
|
tarDist "syncthing-linux-armv6-$version"
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
upload)
|
upload)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user