Develop: Export SEMVER_MAJOR and SEMVER_MINOR in Makefile

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer 2025-04-26 11:25:01 +02:00
parent a3883c1cd4
commit 9ab1772b64

View file

@ -14,7 +14,9 @@ GOIMPORTS=goimports
# Build version string.
SEMVER_MAJOR ?= 1
export SEMVER_MAJOR
SEMVER_MINOR ?= $(shell date -u +%y%m)
export SEMVER_MINOR
SEMVER_PATCH ?= $(shell date -u +%d)
SEMVER_VERSION ?= $(SEMVER_MAJOR).$(SEMVER_MINOR).$(SEMVER_PATCH)
export SEMVER_VERSION