added simple ps1 build script

This commit is contained in:
Antoni Sawicki 2019-07-16 23:20:52 -07:00
parent 6c29008eb5
commit ee26c40eb3

9
make.ps1 Normal file
View File

@ -0,0 +1,9 @@
$env:GOARCH="amd64"
foreach($os in ("linux", "freebsd", "openbsd", "darwin", "windows")) {
$env:GOOS=$os
Invoke-Expression "& go build -a -o wrp-$(if ($os -eq "windows") {$os="windows.exe"})$os wrp.go"
}
$env:GOARCH="arm"
$env:GOOS="linux"
Invoke-Expression "& go build -a -o wrp-linux-rpi wrp.go"