mirror of
https://github.com/netchx/netch.git
synced 2026-04-03 19:35:10 +08:00
Update build.ps1
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user