mirror of
https://github.com/tenox7/wrp.git
synced 2024-12-01 08:51:55 +00:00
added simple ps1 build script
This commit is contained in:
parent
6c29008eb5
commit
ee26c40eb3
9
make.ps1
Normal file
9
make.ps1
Normal 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"
|
Loading…
Reference in New Issue
Block a user