This commit is contained in:
Antoni Sawicki 2019-07-17 00:05:01 -07:00
parent 4212678d81
commit ba4183e0b4
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ param (
$env:GOARCH="amd64"
foreach($os in ("linux", "freebsd", "openbsd", "darwin", "windows")) {
$env:GOOS=$os
$o="wrp-$(if ($os -eq "windows") {$os="windows.exe"})$os"
$o="wrp-$(if ($os -eq "windows") {$os="windows.exe"} elseif ($os -eq "darwin") { $os="macos" })$os"
Remove-Item -ErrorAction Ignore $o
if (!$clean) {
Invoke-Expression "& go build -a -o $o wrp.go"

2
wrp.go
View File

@ -31,7 +31,7 @@ import (
)
var (
version = "4.2"
version = "4.3"
srv http.Server
ctx context.Context
cancel context.CancelFunc