-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added documentation for the buildreleases script
- Loading branch information
Showing
1 changed file
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |