Skip to content

Commit b770afe

Browse files
committed
close #167 fix build versioning
1 parent d7c2b6a commit b770afe

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

ci/build/darwin.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)
77
BUILDPATH=$(pwd)
88

99
#CREATE GO DIRECTORY STRUCTURE

ci/build/linux.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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)
77
BUILDPATH=$(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
1616
cd $GOPATH/src/github.com/praqma/git-phlow
1717
go get -d -t -v ./...
18-
go get -v github.com/inconshreveable/mousetrap
1918

2019
#BUILD WE ONLY BUILD FOR amd64
2120
export GOARCH=amd64

ci/build/windows.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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)
77
BUILDPATH=$(pwd)
88

99
#CREATE GO DIRECTORY STRUCTURE
@@ -24,4 +24,4 @@ export GOARCH=amd64
2424
#BUILD AND COMPRESS
2525
export GOOS=windows
2626
go 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

0 commit comments

Comments
 (0)