Skip to content

Commit

Permalink
convert build script to powershell
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentCosmic committed May 20, 2019
1 parent da5e4b7 commit 006a981
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 112 deletions.
26 changes: 26 additions & 0 deletions build-all.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
$platforms = @(
("darwin", "amd64"),
("windows", "amd64"),
("windows", "386"),
("linux", "amd64"),
("linux", "386"),
("linux", "ppc64"),
("linux", "ppc64le"),
("linux", "mips64"),
("linux", "mips64le"),
("freebsd", "amd64"),
("netbsd", "amd64"),
("openbsd", "amd64"),
("dragonfly", "amd64"),
("solaris", "amd64")
)

foreach ($platform in $platforms) {
$env:GOOS = $platform[0]
$env:GOARCH = $platform[1]
$out = "releases/xnotify-" + $platform[0] + "-" + $platform[1]
echo $out
go build -o $out xnotify.go
}
$env:GOOS = 'windows'
$env:GOARCH = 'amd64'
4 changes: 4 additions & 0 deletions prepare-windows-linux.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
set GOARCH=amd64
set GOOS=linux
go tool dist install -v pkg/runtime
go install -v -a std
112 changes: 0 additions & 112 deletions releases/build-release.sh

This file was deleted.

0 comments on commit 006a981

Please sign in to comment.