Build tar file for current OS/architecture

This commit is contained in:
Jakob Borg 2014-01-07 11:52:42 +01:00
parent 2a0d1ab294
commit 92b01fa48a
1 changed files with 8 additions and 0 deletions

View File

@ -7,6 +7,14 @@ if [[ -z $1 ]] ; then
go test ./...
go build -ldflags "-X main.Version $version" \
&& nrsc syncthing gui
elif [[ $1 == "tar" ]] ; then
go test ./...
go build -ldflags "-X main.Version $version" \
&& nrsc syncthing gui \
&& mkdir syncthing-dist \
&& cp syncthing README.md LICENSE syncthing-dist \
&& tar zcvf syncthing-dist.tar.gz syncthing-dist \
&& rm -rf syncthing-dist
else
go test ./... || exit 1