Build dnsproxy

This commit is contained in:
Netch
2021-09-13 01:26:57 +08:00
parent b8813fe8d9
commit 929e460ff3
2 changed files with 19 additions and 0 deletions

19
Other/dnsproxy/build.ps1 Normal file
View File

@@ -0,0 +1,19 @@
Push-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
git clone https://github.com/AdguardTeam/dnsproxy -b 'v0.39.5' src
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\dnsproxy.exe'
Pop-Location
Pop-Location
exit $lastExitCode

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