diff options
author | Ruben Pollan <meskio@sindominio.net> | 2018-07-09 22:16:48 +0200 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2018-07-09 22:16:48 +0200 |
commit | f858615fbc8c4a364aa1ec312d9bab8152def299 (patch) | |
tree | 4922233db6fd0997b1cf9d152784b183f9259160 /Makefile | |
parent | 27803ec1a4c2d9dba84865a8b538ac8385ee189b (diff) |
[pkg] set the version on windows
- Resolves: #5
Diffstat (limited to 'Makefile')
-rwxr-xr-x | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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" |