File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ set -e -u -x
33
44# GET VERSION AND PATH
55# STORE VERSION AND PATH FOR BUILD
6- VERSION=" 1.0.0 " # $(cat gp-version/version)
6+ VERSION=$( cat gp-version/version)
77BUILDPATH=$( pwd)
88
99# CREATE GO DIRECTORY STRUCTURE
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ set -e -u -x
33
44# GET VERSION AND PATH
55# STORE VERSION AND PATH FOR BUILD
6- VERSION=" 1.0.0 " # $(cat gp-version/version)
6+ VERSION=$( cat gp-version/version)
77BUILDPATH=$( pwd)
88
99# CREATE GO DIRECTORY STRUCTURE
@@ -15,7 +15,6 @@ cp -R git-phlow/ $GOPATH/src/github.com/praqma
1515# NAVIGATE TO FOLDER AND GET DEPS
1616cd $GOPATH /src/github.com/praqma/git-phlow
1717go get -d -t -v ./...
18- go get -v github.com/inconshreveable/mousetrap
1918
2019# BUILD WE ONLY BUILD FOR amd64
2120export GOARCH=amd64
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ set -e -u -x
33
44# GET VERSION AND PATH
55# STORE VERSION AND PATH FOR BUILD
6- VERSION=" 1.0.0 " # $(cat gp-version/version)
6+ VERSION=$( cat gp-version/version)
77BUILDPATH=$( pwd)
88
99# CREATE GO DIRECTORY STRUCTURE
@@ -24,4 +24,4 @@ export GOARCH=amd64
2424# BUILD AND COMPRESS
2525export GOOS=windows
2626go build -ldflags " -X github.com/praqma/git-phlow/options.Version=` echo $VERSION ` -X github.com/praqma/git-phlow/options.Sha1=` git rev-parse HEAD` -X github.com/praqma/git-phlow/options.Date=` date +' %d-%m-%Y' ` "
27- tar -cvzf $BUILDPATH /build-artifacts/git-phlow-$VERSION -windows-$GOARCH .tar.gz git-phlow
27+ tar -cvzf $BUILDPATH /build-artifacts/git-phlow-$VERSION -windows-$GOARCH .tar.gz git-phlow.exe
You can’t perform that action at this time.
0 commit comments