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 #1292 from denisbrodbeck/build-all-windows-exe
Browse files Browse the repository at this point in the history
Releases targeting Windows now have a `.exe` suffix
  • Loading branch information
sdboyer committed Oct 24, 2017
2 parents df32e15 + 9b1caaa commit bf2481a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ jobs:
- release/dep-linux-amd64.sha256
- release/dep-darwin-amd64
- release/dep-darwin-amd64.sha256
- release/dep-windows-amd64
- release/dep-windows-amd64.sha256
- release/dep-windows-amd64.exe
- release/dep-windows-amd64.exe.sha256
skip_cleanup: true
on:
repo: golang/dep
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# v0.3.3 (Unreleased)

BUG FIXES:

* Releases targeting Windows now have a `.exe` suffix (#1291).

# v0.3.2

Expand Down
8 changes: 6 additions & 2 deletions hack/build-all.bash
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,13 @@ mkdir -p release

for OS in ${DEP_BUILD_PLATFORMS[@]}; do
for ARCH in ${DEP_BUILD_ARCHS[@]}; do
NAME="dep-$OS-$ARCH"
if [ "$OS" == "windows" ]; then
NAME="$NAME.exe"
fi
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/
shasum -a 256 "release/dep-$OS-$ARCH" > "release/dep-$OS-$ARCH".sha256
-o "release/$NAME" ./cmd/dep/
shasum -a 256 "release/$NAME" > "release/$NAME".sha256
done
done

0 comments on commit bf2481a

Please sign in to comment.