feat(goreleaser): set version on build via ldflags

This commit is contained in:
Sebastian Mark 2024-11-10 09:29:33 +01:00
parent 712aced7da
commit 9f3e0eb439

View file

@ -1,4 +1,5 @@
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
version: 2
@ -15,6 +16,8 @@ builds:
- arm64
env:
- CGO_ENABLED=0
ldflags:
- -s -w -X {{.ModulePath}}/internal/metadata.ChronoTomatoVersion={{.Version}}
upx:
- enabled: true