Add version info to GUI (fixes #41)

This commit is contained in:
Jakob Borg
2014-01-23 13:13:15 +01:00
parent 2ea3558283
commit 01096fff6c
3 changed files with 8 additions and 3 deletions

View File

@@ -11,7 +11,8 @@ fi
if [[ -z $1 ]] ; then
go build -ldflags "-X main.Version $version"
elif [[ $1 == "embed" ]] ; then
embedder main gui > gui.files.go
embedder main gui > gui.files.go \
&& go build -ldflags "-X main.Version $version"
elif [[ $1 == "tar" ]] ; then
go build -ldflags "-X main.Version $version" \
&& mkdir syncthing-dist \