mirror of
https://github.com/netchx/netch.git
synced 2026-03-14 17:43:18 +08:00
Build dnsproxy
This commit is contained in:
19
Other/dnsproxy/build.ps1
Normal file
19
Other/dnsproxy/build.ps1
Normal 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
0
Other/dnsproxy/deps.ps1
Normal file
Reference in New Issue
Block a user