-
Notifications
You must be signed in to change notification settings - Fork 0
/
_setup.ps1
27 lines (20 loc) · 1022 Bytes
/
_setup.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Write-Output "Set options..."
$env:GOPRIVATE="github.com/ajruckman/ContraCore"
$env:GOOS="windows"
$env:GOARCH="amd64"
Write-Output ""
#Write-Output "Update go-autorest..."
#cd "$(go env GOPATH)\src\github.com\coredns\coredns"
#go get github.com/Azure/go-autorest@latest
#go get github.com/Azure/go-autorest/autorest/adal@latest
#Write-Output ""
Write-Output "Copy module..."
Remove-Item -Force -Recurse "$(go env GOPATH)\pkg\mod\github.com\ajruckman\[email protected]"
New-Item -Type Directory "$(go env GOPATH)\pkg\mod\github.com\ajruckman\[email protected]" | Out-Null
Copy-Item "$(go env GOPATH)\src\github.com\ajruckman\ContraCore\*" -Exclude ('.git', '.idea') -Force -Recurse "$(go env GOPATH)\pkg\mod\github.com\ajruckman\[email protected]"
Write-Output ""
cd "$(go env GOPATH)\src\github.com\ajruckman\ContraCore"
#go build -o coredns.exe
#$ErrorActionPreference = 'SilentlyContinue'
#& .\coredns.exe -conf "$(go env GOPATH)\src\github.com\ajruckman\ContraCore\Corefile"
#Stop-Process -Id $PID -Force