mirror of
https://github.com/XTLS/Xray-docs-next.git
synced 2025-04-04 22:03:35 +03:00
Update a way to build Xray
Add a way to build Xray on Windows with no command line interface.
This commit is contained in:
parent
f14597dd20
commit
272020ba2b
1 changed files with 7 additions and 0 deletions
|
@ -38,6 +38,13 @@ $env:CGO_ENABLED=0
|
|||
go build -o xray.exe -trimpath -ldflags "-s -w -buildid=" ./main
|
||||
```
|
||||
|
||||
你也可以通过这个命令生成一个没有界面的 wxray.exe :
|
||||
|
||||
```powershell
|
||||
$env:CGO_ENABLED=0
|
||||
go build -o wxray.exe -trimpath -ldflags "-s -w -H windowsgui -buildid=" ./main
|
||||
```
|
||||
|
||||
### macOS, Linux:
|
||||
|
||||
```bash
|
||||
|
|
Loading…
Add table
Reference in a new issue