Skip to content

Commit

Permalink
build windows binary
Browse files Browse the repository at this point in the history
  • Loading branch information
cjnosal committed Nov 15, 2019
1 parent 1314b8c commit d53a789
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
/manifer
/manifer_linux
/manifer_darwin
/manifer_windows.exe

# Generated mocks
mock_*
Expand Down
5 changes: 3 additions & 2 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ if [[ "$1" == "all" ]]
then
go fmt ./... && \
GOOS=linux go build -o ./manifer_linux -i ./cmd/manifer && \
GOOS=darwin go build -o ./manifer_darwin -i ./cmd/manifer
GOOS=darwin go build -o ./manifer_darwin -i ./cmd/manifer && \
GOOS=windows go build -o ./manifer_windows.exe -i ./cmd/manifer
else
go fmt ./... && \
go build -o ./manifer -i ./cmd/manifer
Expand All @@ -15,4 +16,4 @@ result=$?

popd > /dev/null

exit $result
exit $result

0 comments on commit d53a789

Please sign in to comment.