From 4c9ea1d917e67dbfb850a5f6dcc690a880729e39 Mon Sep 17 00:00:00 2001 From: Christopher Brown Date: Thu, 1 Feb 2018 12:04:11 -0800 Subject: [PATCH] build: specify the kind of binaries we want Specifically, 64-bit and staticly-compiled is the sweet-spot. --- scripts/build-release.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/build-release.sh b/scripts/build-release.sh index 1d774e6..d0959ef 100755 --- a/scripts/build-release.sh +++ b/scripts/build-release.sh @@ -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