summaryrefslogtreecommitdiffstats
path: root/build.sh
diff options
context:
space:
mode:
authorJakob Borg <jakob@nym.se>2014-01-20 23:01:38 +0100
committerJakob Borg <jakob@nym.se>2014-01-20 23:01:38 +0100
commit84d7452f9e2caa0aabe59ac9654834547d220435 (patch)
treeb7391eadab8925d69c13c1504c7fd28618dc84e3 /build.sh
parent9b449cb5271cc07f8be9930704390b5cad90aa22 (diff)
Use embed instead of nrsc, enables 'go get'
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh8
1 files changed, 3 insertions, 5 deletions
diff --git a/build.sh b/build.sh
index cc1e035ddc..2e64f4ca62 100755
--- a/build.sh
+++ b/build.sh
@@ -14,11 +14,11 @@ if [[ $fast != yes ]] ; then
fi
if [[ -z $1 ]] ; then
- go build -ldflags "-X main.Version $version" \
- && nrsc syncthing gui
+ go build -ldflags "-X main.Version $version"
+elif [[ $1 == "embed" ]] ; then
+ embedder main gui > gui.files.go
elif [[ $1 == "tar" ]] ; then
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 \
@@ -34,7 +34,6 @@ elif [[ $1 == "all" ]] ; then
export GOARCH="$goarch"
export name="syncthing-$goos-$goarch"
go build -ldflags "-X main.Version $version" \
- && nrsc syncthing gui \
&& mkdir -p "$name" \
&& cp syncthing "$buildDir/$name" \
&& cp README.md LICENSE "$name" \
@@ -53,7 +52,6 @@ elif [[ $1 == "all" ]] ; then
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" \