mac build and testing
This commit is contained in:
parent
41046d1d56
commit
ce1b857b9a
3 changed files with 67 additions and 47 deletions
|
|
@ -4,14 +4,19 @@ https://github.com/amidaware/tacticalrmm
|
|||
#### building the agent - linux
|
||||
```
|
||||
env CGO_ENABLED=0 GOOS=<GOOS> GOARCH=<GOARCH> go build -ldflags "-s -w -X 'main.version=v2.0.4'"
|
||||
example: env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-s -w -X 'main.version=v2.0.4' -o build/output/rmmagent"
|
||||
example: env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-s -w -X 'main.version=v2.0.4'" -o build/output/rmmagent
|
||||
```
|
||||
|
||||
#### building the agent - macos
|
||||
```
|
||||
env GOOS=darwin GOARCH=amd64 go build -ldflags "-s -w -X 'main.version=v2.0.4'" -o build/output/rmmagent
|
||||
```
|
||||
|
||||
#### building the agent - windows
|
||||
```
|
||||
go install github.com/josephspurrier/goversioninfo/cmd/goversioninfo
|
||||
go generate
|
||||
$env:CGO_ENABLED="0";$env:GOOS="windows";$env:GOARCH="amd64"; go build -ldflags "-s -w -X 'main.version=v2.0.4' -o build/output/tacticalrmm.exe"
|
||||
$env:CGO_ENABLED="0";$env:GOOS="windows";$env:GOARCH="amd64"; go build -ldflags "-s -w -X 'main.version=v2.0.4'" -o build/output/tacticalrmm.exe
|
||||
```
|
||||
|
||||
### tests
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue