diff --git a/Other/cloak/build.ps1 b/Other/cloak/build.ps1 index 666fe588..3827f8ba 100644 --- a/Other/cloak/build.ps1 +++ b/Other/cloak/build.ps1 @@ -5,13 +5,15 @@ 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\ck-client.exe' '.\src\cmd\ck-client' +go build -a -trimpath -asmflags '-s -w' -ldflags '-s -w' -o '..\..\release\ck-client.exe' '.\cmd\ck-client' +Pop-Location Pop-Location exit $lastExitCode \ No newline at end of file diff --git a/Other/v2ray-core/build.ps1 b/Other/v2ray-core/build.ps1 index d4935fc1..a8ee03cd 100644 --- a/Other/v2ray-core/build.ps1 +++ b/Other/v2ray-core/build.ps1 @@ -5,25 +5,29 @@ 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 -buildid=' -o '..\release\v2ray.exe' '.\src\main' +go build -a -trimpath -asmflags '-s -w' -ldflags '-s -w -buildid=' -o '..\release\v2ray.exe' '.\main' if ( -Not $? ) { + Pop-Location Pop-Location exit $lastExitCode } -go build -a -trimpath -asmflags '-s -w' -ldflags '-s -w -buildid=' -tags confonly -o '..\release\v2ctl.exe' '.\src\infra\control\main' +go build -a -trimpath -asmflags '-s -w' -ldflags '-s -w -buildid=' -tags confonly -o '..\release\v2ctl.exe' '.\infra\control\main' if ( -Not $? ) { + Pop-Location Pop-Location exit $lastExitCode } -go build -a -trimpath -asmflags '-s -w' -ldflags '-s -w -buildid= -H windowsgui' -o '..\release\wv2ray.exe' '.\src\main' +go build -a -trimpath -asmflags '-s -w' -ldflags '-s -w -buildid= -H windowsgui' -o '..\release\wv2ray.exe' '.\main' +Pop-Location Pop-Location exit $lastExitCode \ No newline at end of file diff --git a/Other/xray-core/build.ps1 b/Other/xray-core/build.ps1 index 1520ecff..a18b05b3 100644 --- a/Other/xray-core/build.ps1 +++ b/Other/xray-core/build.ps1 @@ -5,13 +5,15 @@ 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 -buildid=' -o '..\release\xray.exe' '.\src\main' +go build -a -trimpath -asmflags '-s -w' -ldflags '-s -w -buildid=' -o '..\..\release\xray.exe' '.\main' +Pop-Location Pop-Location exit $lastExitCode \ No newline at end of file diff --git a/Other/xray-plugin/build.ps1 b/Other/xray-plugin/build.ps1 index 5e511d72..84cd5d5d 100644 --- a/Other/xray-plugin/build.ps1 +++ b/Other/xray-plugin/build.ps1 @@ -5,13 +5,15 @@ 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' '.\src' +go build -a -trimpath -asmflags '-s -w' -ldflags '-s -w' -o '..\..\release\xray-plugin.exe' +Pop-Location Pop-Location exit $lastExitCode \ No newline at end of file