mirror of
https://github.com/netchx/netch.git
synced 2026-03-14 17:43:18 +08:00
Delete source code after compilation
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user