Build cloak

This commit is contained in:
Netch
2021-09-12 23:13:58 +08:00
parent c686315ee0
commit ac3fd71477
3 changed files with 21 additions and 16 deletions

21
Other/cloak/build.ps1 Normal file
View File

@@ -0,0 +1,21 @@
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

0
Other/cloak/deps.ps1 Normal file
View File