Skip to content

Commit

Permalink
device-flasher: Pull version from git in Makefile
Browse files Browse the repository at this point in the history
Issue-Id: ALTOS-1129
Change-Id: I9a9040745edcd140f191ed7fffaf952a3d8671cf
  • Loading branch information
AKoskovich committed Jul 19, 2023
1 parent b482541 commit bfdc4b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION=1.3.2
VERSION=$(shell git describe --abbrev=0 --tags)

GIT_COMMIT := $(shell git rev-list -1 HEAD)

Expand Down
2 changes: 1 addition & 1 deletion build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ Rem This Windows Batch file will build the Windows version of the Flasher tool.

FOR /F "tokens=*" %%g IN ('git rev-list -1 HEAD') do (SET GIT_COMMIT=%%g)

go build -ldflags "-X main.version=1.3.2 -X 'main.gitCommit=%GIT_COMMIT%'" .
go build -ldflags "-X main.version=('git describe --abbrev=0 --tags') -X 'main.gitCommit=%GIT_COMMIT%'" .

0 comments on commit bfdc4b1

Please sign in to comment.