Skip to content
This repository has been archived by the owner on Dec 4, 2018. It is now read-only.

Commit

Permalink
build: specify the kind of binaries we want
Browse files Browse the repository at this point in the history
Specifically, 64-bit and staticly-compiled is the sweet-spot.
  • Loading branch information
Christopher Brown committed Feb 1, 2018
1 parent aea62a3 commit 4c9ea1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/build-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ set -e
SANDBOX=$(mktemp -d)

echo "building linux..."
GOOS=linux go build -o $SANDBOX/autopilot-linux github.com/contraband/autopilot
CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -o $SANDBOX/autopilot-linux github.com/contraband/autopilot

echo "building os x..."
GOOS=darwin go build -o $SANDBOX/autopilot-darwin github.com/contraband/autopilot
CGO_ENABLED=0 GOARCH=amd64 GOOS=darwin go build -o $SANDBOX/autopilot-darwin github.com/contraband/autopilot

echo "building windows..."
GOOS=windows go build -o $SANDBOX/autopilot.exe github.com/contraband/autopilot
CGO_ENABLED=0 GOARCH=amd64 GOOS=windows go build -o $SANDBOX/autopilot.exe github.com/contraband/autopilot

echo

Expand Down

0 comments on commit 4c9ea1d

Please sign in to comment.