update README: go1.25构建指令

This commit is contained in:
wyx2685
2025-08-23 01:10:51 +09:00
parent 6e8297c553
commit 0824bf7a4e

View File

@@ -40,7 +40,6 @@ A V2board node server based on multi core, modified from XrayR.
## TODO ## TODO
- [ ] 重新实现动态限速 - [ ] 重新实现动态限速
- [ ] 重新实现在线IP同步跨节点在线IP限制
- [ ] 完善使用文档 - [ ] 完善使用文档
## 软件安装 ## 软件安装
@@ -58,7 +57,7 @@ wget -N https://raw.githubusercontent.com/wyx2685/V2bX-script/master/install.sh
## 构建 ## 构建
``` bash ``` bash
# 通过-tags选项指定要编译的内核 可选 xray sing, hysteria2 # 通过-tags选项指定要编译的内核 可选 xray sing, hysteria2
go build -v -o ./V2bX -tags "xray sing hysteria2 with_quic with_grpc with_utls with_wireguard with_acme" -trimpath -ldflags "-s -w -buildid=" GOEXPERIMENT=jsonv2 go build -v -o build_assets/V2bX -tags "sing xray hysteria2 with_quic with_grpc with_utls with_wireguard with_acme with_gvisor" -trimpath -ldflags "-X 'github.com/InazumaV/V2bX/cmd.version=$version' -s -w -buildid="
``` ```
## 配置文件及详细使用教程 ## 配置文件及详细使用教程
@@ -72,6 +71,10 @@ go build -v -o ./V2bX -tags "xray sing hysteria2 with_quic with_grpc with_utls w
* 本人不对任何人使用本项目造成的任何后果承担责任。 * 本人不对任何人使用本项目造成的任何后果承担责任。
* 本人比较多变,因此本项目可能会随想法或思路的变动随性更改项目结构或大规模重构代码,若不能接受请勿使用。 * 本人比较多变,因此本项目可能会随想法或思路的变动随性更改项目结构或大规模重构代码,若不能接受请勿使用。
## 赞助
[赞助链接](https://v-50.me/)
## Thanks ## Thanks
* [Project X](https://github.com/XTLS/) * [Project X](https://github.com/XTLS/)