Update build.ps1

This commit is contained in:
Netch
2023-01-02 09:34:20 +08:00
committed by GitHub
parent 43705b324e
commit 7042fcbadb

View File

@@ -23,6 +23,7 @@ $Env:GOROOT_FINAL='/usr'
$Env:GOOS='windows'
$Env:GOARCH='amd64'
go mod tidy # necessary
go get -u ./...
go mod tidy
go build -a -trimpath -asmflags '-s -w' -ldflags '-s -w -buildid=' -o '..\..\release\v2ray-sn.exe' '.\main'
exit $lastExitCode