Skip to content

Commit

Permalink
Convert git tag to version by removing initial "v"
Browse files Browse the repository at this point in the history
  • Loading branch information
524D committed Nov 21, 2019
1 parent 76aabd2 commit c274e3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ TARGET_DIR=~/tools

mkdir -p $TARGET_DIR
VERSION=$(git describe --abbrev --dirty --always --tags)
VERSION=${VERSION#"v"}

# Build for Linux
go build -a -ldflags "-extldflags \"-static\" -X main.progVersion=${VERSION}" -o $TARGET_DIR/mzrecal
Expand Down

0 comments on commit c274e3f

Please sign in to comment.