Delete make.ps1

This commit is contained in:
Antoni Sawicki 2019-10-27 17:02:11 -07:00 committed by GitHub
parent 780143b766
commit 333666d3b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 16 deletions

View File

@ -1,16 +0,0 @@
param (
[switch]$clean = $false
)
foreach($sys in ("amd64-linux", "arm-linux", "arm-netbsd", "arm-freebsd", "amd64-freebsd", "amd64-openbsd", "amd64-darwin", "amd64-windows")) {
$cpu,$os = $sys.split('-')
$env:GOARCH=$cpu
$env:GOOS=$os
$o="wrp-$cpu-$(if ($os -eq "windows") {$os="windows.exe"} elseif ($os -eq "darwin") { $os="macos" })$os"
Remove-Item -ErrorAction Ignore $o
if (!$clean) {
$cmd = "& go build -a -o $o wrp.go"
Write-Host $cmd
Invoke-Expression $cmd
}
}