mirror of
https://github.com/netchx/netch.git
synced 2026-01-25 13:02:30 +08:00
Update build.ps1
This commit is contained in:
@@ -23,6 +23,7 @@ $Env:GOROOT_FINAL='/usr'
|
|||||||
|
|
||||||
$Env:GOOS='windows'
|
$Env:GOOS='windows'
|
||||||
$Env:GOARCH='amd64'
|
$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'
|
go build -a -trimpath -asmflags '-s -w' -ldflags '-s -w -buildid=' -o '..\..\release\v2ray-sn.exe' '.\main'
|
||||||
exit $lastExitCode
|
exit $lastExitCode
|
||||||
|
|||||||
Reference in New Issue
Block a user