diff --git a/make.ps1 b/make.ps1 new file mode 100644 index 0000000..4e718ce --- /dev/null +++ b/make.ps1 @@ -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" \ No newline at end of file