diff --git a/Other/cloak/build.ps1 b/Other/cloak/build.ps1 new file mode 100644 index 00000000..015e1f8f --- /dev/null +++ b/Other/cloak/build.ps1 @@ -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 \ No newline at end of file diff --git a/Other/cloak/deps.ps1 b/Other/cloak/deps.ps1 new file mode 100644 index 00000000..e69de29b diff --git a/scripts/deps/cloak.ps1 b/scripts/deps/cloak.ps1 deleted file mode 100644 index 31664afc..00000000 --- a/scripts/deps/cloak.ps1 +++ /dev/null @@ -1,16 +0,0 @@ -param ( - [string] - $OutputPath -) - -try { - Invoke-WebRequest ` - -Uri 'https://github.com/cbeuw/Cloak/releases/download/v2.5.5/ck-client-windows-amd64-v2.5.5.exe' ` - -OutFile 'ck-client.exe' -} -catch { - exit 1 -} - -mv -Force 'ck-client.exe' $OutputPath -exit 0 \ No newline at end of file