Compilation

Some components require specific Go build tags:

  • client: -tags client
  • mini_agent: -tags mini

The project can also be built using GoReleaser.

Optional build dependencies

Agent

Direct compilation

go build -o tealc ./agent

Using the wrapper script

go run ./scripts/build/  --id agent --goos windows --goarch amd64 --no-seed --gen-age-key=false --gen-access-token=false

Using the client CLI

tealc compile --id agent --goarch amd64 --goos windows

Server

Direct compilation

go build -o goauld_server ./server

Using the wrapper script

go run ./scripts/build/ --gen-age-key=false --gen-access-token=false --id server --goos linux --goarch amd64 -vvv

Client

Direct compilation

go build -tags client -o tealc ./client

Using the wrapper script

go run ./scripts/build/ --gen-age-key=false --gen-access-token=false --id client --goos linux --goarch amd64 -vvv
tealc compile --id [[client|server|agent|mini_agent|agent-dll]]