Update build.ps1

This commit is contained in:
Netch
2021-09-12 23:48:57 +08:00
parent 144b246a46
commit d3b7f420a9
3 changed files with 3 additions and 11 deletions

View File

@@ -5,17 +5,13 @@ if ( -Not $? ) {
Pop-Location
exit $lastExitCode
}
Push-Location src
Push-Location 'cmd\ck-client'
$Env:CGO_ENABLED='0'
$Env:GOROOT_FINAL='/usr'
$Env:GOOS='windows'
$Env:GOARCH='amd64'
go build -a -trimpath -asmflags '-s -w' -ldflags '-s -w' -o '..\..\..\..\release\ck-client.exe'
Pop-Location
go build -a -trimpath -asmflags '-s -w' -ldflags '-s -w' -o '..\release\ck-client.exe' '.\src\cmd\ck-client'
Pop-Location
Pop-Location
exit $lastExitCode

View File

@@ -5,15 +5,13 @@ if ( -Not $? ) {
Pop-Location
exit $lastExitCode
}
Push-Location src
$Env:CGO_ENABLED='0'
$Env:GOROOT_FINAL='/usr'
$Env:GOOS='windows'
$Env:GOARCH='amd64'
go build -a -trimpath -asmflags '-s -w' -ldflags '-s -w' -o '..\..\release\v2ray-plugin.exe'
go build -a -trimpath -asmflags '-s -w' -ldflags '-s -w' -o '..\release\v2ray-plugin.exe' '.\src'
Pop-Location
Pop-Location
exit $lastExitCode

View File

@@ -5,15 +5,13 @@ if ( -Not $? ) {
Pop-Location
exit $lastExitCode
}
Push-Location src
$Env:CGO_ENABLED='0'
$Env:GOROOT_FINAL='/usr'
$Env:GOOS='windows'
$Env:GOARCH='amd64'
go build -a -trimpath -asmflags '-s -w' -ldflags '-s -w' -o '..\..\release\xray-plugin.exe'
go build -a -trimpath -asmflags '-s -w' -ldflags '-s -w' -o '..\release\xray-plugin.exe' '.\src'
Pop-Location
Pop-Location
exit $lastExitCode