summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2018-07-09 22:16:48 +0200
committerRuben Pollan <meskio@sindominio.net>2018-07-09 22:16:48 +0200
commitf858615fbc8c4a364aa1ec312d9bab8152def299 (patch)
tree4922233db6fd0997b1cf9d152784b183f9259160
parent27803ec1a4c2d9dba84865a8b538ac8385ee189b (diff)
[pkg] set the version on windows
- Resolves: #5
-rwxr-xr-xMakefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b69f1b3..9741257 100755
--- a/Makefile
+++ b/Makefile
@@ -28,7 +28,7 @@ helper_win:
upx $(STAGING)/$(HELPER_BIN).exe
systray_win:
go get -tags "standalone" -u $(SYSTRAY)
- go build -tags "standalone" -ldflags "-H windowsgui -s -w" -o $(STAGING)/$(SYSTRAY_BIN).exe $(SYSTRAY)
+ powershell '$$gopath=go env GOPATH;$$version=git -C $$gopath/src/$(SYSTRAY) describe --tags; go build -tags "standalone" -ldflags "-H windowsgui -s -w -X main.version=$$version" -o $(STAGING)/$(SYSTRAY_BIN).exe $(SYSTRAY)'
build_win: staging\nssm.exe helper_win systray_win
# since it's tedious, I assume you did bootstrap openvpn_win manually already.
echo "[+] building windows"