Sing-Box v1.13.4
This commit is contained in:
@@ -53,11 +53,11 @@ set GOOS=windows
|
||||
set GOARCH=amd64
|
||||
|
||||
REM Try to build with CGO first
|
||||
go build -ldflags "-w -s" -tags "with_quic,with_grpc,with_utls,with_acme,with_gvisor" -o sui.exe main.go
|
||||
go build -ldflags "-w -s" -tags "with_quic,with_grpc,with_utls,with_acme,with_gvisor,with_tailscale" -o sui.exe main.go
|
||||
if errorlevel 1 (
|
||||
echo Warning: CGO build failed, trying without CGO...
|
||||
set CGO_ENABLED=0
|
||||
go build -ldflags "-w -s" -tags "with_quic,with_grpc,with_utls,with_acme,with_gvisor" -o sui.exe main.go
|
||||
go build -ldflags "-w -s" -tags "with_quic,with_grpc,with_utls,with_acme,with_gvisor,with_tailscale" -o sui.exe main.go
|
||||
if errorlevel 1 (
|
||||
echo Error: Failed to build backend
|
||||
pause
|
||||
|
||||
@@ -96,7 +96,7 @@ if ($NoCGO) {
|
||||
}
|
||||
|
||||
# Build command
|
||||
$buildCmd = "go build -ldflags `"-w -s`" -tags `"with_quic,with_grpc,with_utls,with_acme,with_gvisor`" -o sui.exe main.go"
|
||||
$buildCmd = "go build -ldflags `"-w -s`" -tags `"with_quic,with_grpc,with_utls,with_acme,with_gvisor,with_tailscale`" -o sui.exe main.go"
|
||||
|
||||
try {
|
||||
Invoke-Expression $buildCmd
|
||||
|
||||
Reference in New Issue
Block a user