From d3b7f420a94bc91bc2b5e784c206862cc5729dc9 Mon Sep 17 00:00:00 2001 From: Netch Date: Sun, 12 Sep 2021 23:48:57 +0800 Subject: [PATCH] Update build.ps1 --- Other/cloak/build.ps1 | 6 +----- Other/v2ray-plugin/build.ps1 | 4 +--- Other/xray-plugin/build.ps1 | 4 +--- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/Other/cloak/build.ps1 b/Other/cloak/build.ps1 index 72d8e4a3..666fe588 100644 --- a/Other/cloak/build.ps1 +++ b/Other/cloak/build.ps1 @@ -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 \ No newline at end of file diff --git a/Other/v2ray-plugin/build.ps1 b/Other/v2ray-plugin/build.ps1 index 3d0bc358..9cdc4fe7 100644 --- a/Other/v2ray-plugin/build.ps1 +++ b/Other/v2ray-plugin/build.ps1 @@ -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 \ No newline at end of file diff --git a/Other/xray-plugin/build.ps1 b/Other/xray-plugin/build.ps1 index 84cd5d5d..5e511d72 100644 --- a/Other/xray-plugin/build.ps1 +++ b/Other/xray-plugin/build.ps1 @@ -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 \ No newline at end of file