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

Commit 4c9ea1d

Browse files
author
Christopher Brown
committed
build: specify the kind of binaries we want
Specifically, 64-bit and staticly-compiled is the sweet-spot.
1 parent aea62a3 commit 4c9ea1d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/build-release.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ set -e
55
SANDBOX=$(mktemp -d)
66

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

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

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

1616
echo
1717

0 commit comments

Comments
 (0)