Skip to content

Commit

Permalink
Add ARM builds (linux+darwin).
Browse files Browse the repository at this point in the history
The binaries are untested.

Fixes Palats#13
  • Loading branch information
Palats committed Jul 13, 2021
1 parent 6f4dc43 commit effe8ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ go test ./... || exit 1
TARGET="$(pwd)/build"
mkdir -p "${TARGET?}"
GOOS=linux GOARCH=amd64 go build -o "${TARGET?}/mapshot-linux" mapshot.go
GOOS=linux GOARCH=arm go build -o "${TARGET?}/mapshot-linux-arm" mapshot.go
GOOS=windows GOARCH=amd64 go build -o "${TARGET?}/mapshot-windows.exe" mapshot.go
GOOS=darwin GOARCH=amd64 go build -o "${TARGET?}/mapshot-darwin" mapshot.go
GOOS=darwin GOARCH=arm64 go build -o "${TARGET?}/mapshot-darwin-arm64" mapshot.go
go run mapshot.go package "${TARGET?}"

0 comments on commit effe8ce

Please sign in to comment.