feat: add git commit hash into footer

This commit is contained in:
rramiachraf
2024-03-05 19:47:02 +01:00
parent 9b0f8fb96a
commit 23b11d2edf
4 changed files with 46 additions and 18 deletions

View File

@ -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"