feat: add git commit hash into footer
This commit is contained in:
4
Makefile
4
Makefile
@ -1,4 +1,6 @@
|
||||
VERSION=`git rev-parse --short HEAD`
|
||||
|
||||
gentempl:
|
||||
@command -v templ &> /dev/null || go install github.com/a-h/templ/cmd/templ@latest
|
||||
build:gentempl
|
||||
templ generate && go build -o dumb
|
||||
templ generate && go build -ldflags="-X 'github.com/rramiachraf/dumb/data.Version=$(VERSION)' -s -w"
|
||||
|
Reference in New Issue
Block a user