diff --git a/.gitignore b/.gitignore index f49e78c..0b86b80 100644 --- a/.gitignore +++ b/.gitignore @@ -6,7 +6,7 @@ *.dylib *.abi *.bin -/cmd/issueToken/issueToken +/cmd/issueToken/issueToken* # IDEs /.idea diff --git a/cmd/issueToken/cross_build.sh b/cmd/issueToken/cross_build.sh index d48406d..6c22519 100755 --- a/cmd/issueToken/cross_build.sh +++ b/cmd/issueToken/cross_build.sh @@ -5,5 +5,5 @@ BUILD=`date +%FT%T%z` xgo \ --targets=windows/386,windows/amd64,darwin/386,darwin/amd64,linux/386,linux/amd64 \ --ldflags "-s -w -X github.com/dabankio/TokenIssuer/cmd/issueToken.Version=$VERSION -X github.com/dabankio/TokenIssuer/cmd/issueToken.BuildDate=$BUILD" \ +-ldflags "-s -w -X main.Version=$VERSION -X main.BuildDate=$BUILD" \ ./ \ No newline at end of file diff --git a/cmd/issueToken/native_build.sh b/cmd/issueToken/native_build.sh index 8674a6f..749af40 100755 --- a/cmd/issueToken/native_build.sh +++ b/cmd/issueToken/native_build.sh @@ -3,4 +3,4 @@ VERSION=`git describe --tags --dirty` BUILD=`date +%FT%T%z` -go build -ldflags "-s -w -X github.com/dabankio/TokenIssuer/cmd/issueToken.Version=$VERSION -X github.com/dabankio/TokenIssuer/cmd/issueToken.BuildDate=$BUILD" \ No newline at end of file +go build -ldflags "-s -w -X main.Version=$VERSION -X main.BuildDate=$BUILD" \ No newline at end of file