-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b7dc9e2
commit 4a5e358
Showing
4 changed files
with
28 additions
and
3 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 |
---|---|---|
|
@@ -22,3 +22,4 @@ vendor/ | |
|
||
# End of https://www.gitignore.io/api/go | ||
example-client | ||
bin/ |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
LINUX=bin/nhite-sample-cli-linux-amd64 | ||
WINDOWS64=bin/nhite-sample-cli-amd64.exe | ||
DARWIN=bin/nhite-sample-cli-darwin64 | ||
|
||
# These are the values we want to pass for VERSION and BUILD | ||
# # git tag 1.0.1 | ||
# # git commit -am "One more change after the tags" | ||
VERSION=`git describe --tags` | ||
BUILD=`date +%FT%T%z` | ||
|
||
LDFLAGS=-ldflags "-w -s -X main.Version=${VERSION} -X main.Build=${BUILD}" | ||
|
||
all: $(LINUX) $(WINDOWS64) $(WINDOWS32) $(DARWIN) | ||
|
||
$(LINUX): *.go | ||
GOOS=linux GOARCH=amd64 go build ${LDFLAGS} -o $(LINUX) *.go | ||
|
||
$(WINDOWS64): *.go | ||
GOOS=windows GOARCH=amd64 go build ${LDFLAGS} -o $(WINDOWS64) *.go | ||
|
||
$(DARWIN): *.go | ||
GOOS=darwin GOARCH=amd64 go build ${LDFLAGS} -o $(DARWIN) *.go | ||
|
||
|
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,2 +1,2 @@ | ||
export TAAS_CLIENT_CERT_FILE="../out/test.crt" | ||
export TAAS_CLIENT_TAAS_ADDRESS="127.0.0.1:1234" | ||
export NHITE_CLIENT_CERT_FILE="../out/test.crt" | ||
export NHITE_CLIENT_TAAS_ADDRESS="127.0.0.1:1234" |
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