Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1201 from AlekSi/build-macos
Browse files Browse the repository at this point in the history
Modify build-all.bash script to work on macOS.
  • Loading branch information
sdboyer committed Sep 22, 2017
2 parents dec1951 + 9642a49 commit 203c059
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hack/build-all.bash
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ set -e

VERSION=$(git describe --tags --dirty)
COMMIT_HASH=$(git rev-parse --short HEAD 2>/dev/null)
DATE=$(date --iso-8601)
DATE=$(date "+%Y-%m-%d")

GO_BUILD_CMD="go build -a -installsuffix cgo"
GO_BUILD_LDFLAGS="-s -w -X main.commitHash=$COMMIT_HASH -X main.buildDate=$DATE -X main.version=$VERSION"
Expand All @@ -32,6 +32,6 @@ for OS in ${DEP_BUILD_PLATFORMS[@]}; do
echo "Building for $OS/$ARCH"
GOARCH=$ARCH GOOS=$OS CGO_ENABLED=0 $GO_BUILD_CMD -ldflags "$GO_BUILD_LDFLAGS"\
-o "release/dep-$OS-$ARCH" ./cmd/dep/
sha256sum "release/dep-$OS-$ARCH" > "release/dep-$OS-$ARCH".sha256
shasum -a 256 "release/dep-$OS-$ARCH" > "release/dep-$OS-$ARCH".sha256
done
done

0 comments on commit 203c059

Please sign in to comment.