Skip to content

Commit

Permalink
Added documentation for the buildreleases script
Browse files Browse the repository at this point in the history
  • Loading branch information
CastelloG committed Jun 28, 2022
1 parent ae5f12b commit ba92507
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions cli/buildreleases.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash
# This script builds Linux, Windows and MacOS binaries into the cli/bin directory
mkdir -p bin
GOOS=darwin GOARCH=amd64 go build && mv ./cli ./bin/gocli-macos \
&& GOOS=linux GOARCH=amd64 go build && mv ./cli ./bin/gocli-linux \
&& GOOS=windows GOARCH=amd64 go build && mv ./cli.exe ./bin/gocli.exe\
&& go clean
GOOS=darwin GOARCH=amd64 go build && mv ./cli ./bin/gocli-macos &&
GOOS=linux GOARCH=amd64 go build && mv ./cli ./bin/gocli-linux &&
GOOS=windows GOARCH=amd64 go build && mv ./cli.exe ./bin/gocli.exe && go clean

0 comments on commit ba92507

Please sign in to comment.