mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-22 22:58:25 +00:00
Build tar file for current OS/architecture
This commit is contained in:
parent
2a0d1ab294
commit
92b01fa48a
8
build.sh
8
build.sh
@ -7,6 +7,14 @@ if [[ -z $1 ]] ; then
|
|||||||
go test ./...
|
go test ./...
|
||||||
go build -ldflags "-X main.Version $version" \
|
go build -ldflags "-X main.Version $version" \
|
||||||
&& nrsc syncthing gui
|
&& 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
|
else
|
||||||
go test ./... || exit 1
|
go test ./... || exit 1
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user