Files
netch/Other/dnsproxy/build.ps1
2021-10-04 22:36:24 +08:00

15 lines
399 B
PowerShell

Set-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
git clone https://github.com/AdguardTeam/dnsproxy -b 'v0.39.8' src
if ( -Not $? ) {
exit $lastExitCode
}
Set-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\dnsproxy.exe'
exit $lastExitCode