diff --git a/README.md b/README.md index 3b1226d2..467a83e9 100644 --- a/README.md +++ b/README.md @@ -125,6 +125,21 @@ ## Compilation +### Windows (PowerShell) + +```powershell +$env:CGO_ENABLED=0 +go build -o xray.exe -trimpath -ldflags "-s -w -buildid=" ./main +``` + +### Linux / macOS + +```bash +CGO_ENABLED=0 go build -o xray -trimpath -ldflags "-s -w -buildid=" ./main +``` + +### Reproducible Releases + ```bash make ```