Files
netch/Other/cloak/build.ps1
2021-09-12 23:13:58 +08:00

21 lines
479 B
PowerShell

Push-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
git clone https://github.com/cbeuw/Cloak src
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
Pop-Location
Pop-Location
exit $lastExitCode