Skip to content

Commit 1a31c3e

Browse files
authored
Merge pull request #101 from SimonBaeumer/fix-windows-build
Add exe suffix to windows binaries
2 parents 4f3cb41 + a3998bc commit 1a31c3e

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

.travis.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,14 @@ stages:
1010
- deploy
1111

1212
go:
13-
- 1.12.x
13+
- 1.13.x
1414

1515
sudo: required
1616
dist: trusty
1717

1818
before_install:
1919
- go get -u golang.org/x/lint/golint
20-
- make deps
21-
- curl -L https://github.com/SimonBaeumer/commander/releases/download/v0.3.0/commander-linux-amd64 -o ~/bin/commander
20+
- curl -L https://github.com/SimonBaeumer/commander/releases/download/v1.2.1/commander-linux-amd64 -o ~/bin/commander
2221
- chmod +x ~/bin/commander
2322

2423
jobs:
@@ -51,7 +50,7 @@ jobs:
5150
before_install:
5251
- choco install make
5352
- choco install curl
54-
- curl -L https://github.com/SimonBaeumer/commander/releases/download/v0.3.0/commander-windows-amd64 -o C:\Windows\system32\commander.exe
53+
- curl -L https://github.com/SimonBaeumer/commander/releases/download/v1.2.1/commander-windows-amd64 -o C:\Windows\system32\commander.exe
5554
script:
5655
- make integration-windows
5756

@@ -83,8 +82,8 @@ jobs:
8382
- release/commander-linux-386
8483
- release/commander-darwin-amd64
8584
- release/commander-darwin-386
86-
- release/commander-windows-amd64
87-
- release/commander-windows-386
85+
- release/commander-windows-amd64.exe
86+
- release/commander-windows-386.exe
8887
skip_cleanup: true
8988
on:
9089
repo: SimonBaeumer/commander

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# v1.2.2
2+
3+
- Rename windows binary `commander-windows-386` to `commander-windows-386.exe`
4+
- Rename windows binary `commander-windows-amd64` to `commander-windows-amd64.exe`
5+
- Use commander v1.2.1 in travis build
6+
17
# v1.2.1
28

39
- Fix `add` command if `stdout` or `stderr` properties were removed if a new test was added

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ release-darwin-386:
6060

6161
release-windows-amd64:
6262
$(info INFO: Starting build $@)
63-
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags "-X main.version=$(TRAVIS_TAG) -s -w" -o release/$(cmd)-windows-amd64 $(exe)
63+
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags "-X main.version=$(TRAVIS_TAG) -s -w" -o release/$(cmd)-windows-amd64.exe $(exe)
6464

6565
release-windows-386:
6666
$(info INFO: Starting build $@)
67-
CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -ldflags "-X main.version=$(TRAVIS_TAG) -s -w" -o release/$(cmd)-windows-386 $(exe)
67+
CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -ldflags "-X main.version=$(TRAVIS_TAG) -s -w" -o release/$(cmd)-windows-386.exe $(exe)
6868

6969

7070
release: release-amd64 release-arm release-386 release-darwin-amd64 release-darwin-386 release-windows-amd64 release-windows-386

0 commit comments

Comments
 (0)