From 92b01fa48a73952fa0ccc05be8957b4a3833efcf Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Tue, 7 Jan 2014 11:52:42 +0100 Subject: [PATCH] Build tar file for current OS/architecture --- build.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build.sh b/build.sh index e9c8ef8f2..6bf485297 100755 --- a/build.sh +++ b/build.sh @@ -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