fixed version building

This commit is contained in:
redanthrax 2022-06-21 16:14:58 -07:00
parent 51f1eab127
commit c36ee74c5a

View file

@ -3,12 +3,12 @@ https://github.com/amidaware/tacticalrmm
#### building the agent - linux #### building the agent - linux
``` ```
env CGO_ENABLED=0 GOOS=<GOOS> GOARCH=<GOARCH> go build -ldflags "-s -w -X 'main.Version=v2.0.4" env CGO_ENABLED=0 GOOS=<GOOS> GOARCH=<GOARCH> go build -ldflags "-s -w -X 'main.version=v2.0.4'"
``` ```
#### building the agent - windows #### building the agent - windows
``` ```
$env:CGO_ENABLED="0";$env:GOOS="windows";$env:GOARCH="amd64"; go build -ldflags "-s -w -X 'main.Version=v2.0.4" $env:CGO_ENABLED="0";$env:GOOS="windows";$env:GOARCH="amd64"; go build -ldflags "-s -w -X 'main.version=v2.0.4'"
``` ```
### tests ### tests