Delete source code after compilation

This commit is contained in:
Netch
2021-09-15 05:04:02 +08:00
parent 929e460ff3
commit 5984bf8664
7 changed files with 18 additions and 0 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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