0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-06-15 04:47:16 +03:00

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

View File

@ -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
```