mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 03:18:59 +00:00
Build for Linux on ARM (fixes #32)
This commit is contained in:
parent
2935aebe53
commit
6e11e3cda9
20
build.sh
20
build.sh
@ -38,6 +38,26 @@ else
|
|||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
|
for goos in linux ; do
|
||||||
|
for goarm in 5 6 7 ; do
|
||||||
|
for goarch in arm ; do
|
||||||
|
echo "$goos-${goarch}v$goarm"
|
||||||
|
export GOARM="$goarm"
|
||||||
|
export GOOS="$goos"
|
||||||
|
export GOARCH="$goarch"
|
||||||
|
export name="syncthing-$goos-${goarch}v$goarm"
|
||||||
|
go build -ldflags "-X main.Version $version" \
|
||||||
|
&& nrsc syncthing gui \
|
||||||
|
&& mkdir -p "$name" \
|
||||||
|
&& cp syncthing "$buildDir/$name" \
|
||||||
|
&& cp README.md LICENSE "$name" \
|
||||||
|
&& mv syncthing "$name" \
|
||||||
|
&& tar zcf "$buildDir/$name.tar.gz" "$name" \
|
||||||
|
&& rm -r "$name"
|
||||||
|
done
|
||||||
|
done
|
||||||
|
done
|
||||||
|
|
||||||
for goos in windows ; do
|
for goos in windows ; do
|
||||||
for goarch in amd64 386 ; do
|
for goarch in amd64 386 ; do
|
||||||
echo "$goos-$goarch"
|
echo "$goos-$goarch"
|
||||||
|
Loading…
Reference in New Issue
Block a user