README: Re-add Compilation

This commit is contained in:
RPRX 2024-02-04 09:36:41 +00:00 committed by GitHub
parent ad3d347cfc
commit b56917fde5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -125,6 +125,21 @@
## Compilation ## 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 ```bash
make make
``` ```