diff --git a/Other/cloak/build.ps1 b/Other/cloak/build.ps1 index 3827f8ba..1ff33eb5 100644 --- a/Other/cloak/build.ps1 +++ b/Other/cloak/build.ps1 @@ -15,5 +15,7 @@ $Env:GOARCH='amd64' go build -a -trimpath -asmflags '-s -w' -ldflags '-s -w' -o '..\..\release\ck-client.exe' '.\cmd\ck-client' Pop-Location +rm -Recurse -Force src + Pop-Location exit $lastExitCode \ No newline at end of file diff --git a/Other/dnsproxy/build.ps1 b/Other/dnsproxy/build.ps1 index 44d03ee2..6b5c98b1 100644 --- a/Other/dnsproxy/build.ps1 +++ b/Other/dnsproxy/build.ps1 @@ -15,5 +15,7 @@ $Env:GOARCH='amd64' go build -a -trimpath -asmflags '-s -w' -ldflags '-s -w' -o '..\..\release\dnsproxy.exe' Pop-Location +rm -Recurse -Force src + Pop-Location exit $lastExitCode \ No newline at end of file diff --git a/Other/trojan-go/build.ps1 b/Other/trojan-go/build.ps1 index 18f90910..4f3b902a 100644 --- a/Other/trojan-go/build.ps1 +++ b/Other/trojan-go/build.ps1 @@ -15,5 +15,7 @@ $Env:GOARCH='amd64' go build -a -trimpath -asmflags '-s -w' -ldflags '-s -w' -tags 'full' -o '..\..\release\trojan-go.exe' Pop-Location +rm -Recurse -Force src + 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 cd6a38a2..79157536 100644 --- a/Other/v2ray-core/build.ps1 +++ b/Other/v2ray-core/build.ps1 @@ -15,6 +15,8 @@ $Env:GOARCH='amd64' go build -a -trimpath -asmflags '-s -w' -ldflags '-s -w -buildid=' -o '..\..\release\v2ray.exe' '.\main' if ( -Not $? ) { Pop-Location + rm -Recurse -Force src + Pop-Location exit $lastExitCode } @@ -22,6 +24,8 @@ if ( -Not $? ) { go build -a -trimpath -asmflags '-s -w' -ldflags '-s -w -buildid=' -tags confonly -o '..\..\release\v2ctl.exe' '.\infra\control\main' if ( -Not $? ) { Pop-Location + rm -Recurse -Force src + Pop-Location exit $lastExitCode } @@ -29,5 +33,7 @@ if ( -Not $? ) { go build -a -trimpath -asmflags '-s -w' -ldflags '-s -w -buildid= -H windowsgui' -o '..\..\release\wv2ray.exe' '.\main' Pop-Location +rm -Recurse -Force src + 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..334d25d2 100644 --- a/Other/v2ray-plugin/build.ps1 +++ b/Other/v2ray-plugin/build.ps1 @@ -15,5 +15,7 @@ $Env:GOARCH='amd64' go build -a -trimpath -asmflags '-s -w' -ldflags '-s -w' -o '..\..\release\v2ray-plugin.exe' Pop-Location +rm -Recurse -Force src + 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 a18b05b3..194bad60 100644 --- a/Other/xray-core/build.ps1 +++ b/Other/xray-core/build.ps1 @@ -15,5 +15,7 @@ $Env:GOARCH='amd64' go build -a -trimpath -asmflags '-s -w' -ldflags '-s -w -buildid=' -o '..\..\release\xray.exe' '.\main' Pop-Location +rm -Recurse -Force src + 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..cfcd4574 100644 --- a/Other/xray-plugin/build.ps1 +++ b/Other/xray-plugin/build.ps1 @@ -15,5 +15,7 @@ $Env:GOARCH='amd64' go build -a -trimpath -asmflags '-s -w' -ldflags '-s -w' -o '..\..\release\xray-plugin.exe' Pop-Location +rm -Recurse -Force src + Pop-Location exit $lastExitCode \ No newline at end of file