mirror of
https://github.com/photoprism/photoprism.git
synced 2026-01-22 18:18:39 +00:00
Setup: Improve package build configuration #3861
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
parent
3625f94065
commit
cf75dece27
2 changed files with 8 additions and 0 deletions
1
.semver
Normal file
1
.semver
Normal file
|
|
@ -0,0 +1 @@
|
|||
SEMVER_MAJOR=1
|
||||
7
Makefile
7
Makefile
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
export GO111MODULE=on
|
||||
|
||||
-include .semver
|
||||
-include .env
|
||||
export
|
||||
|
||||
|
|
@ -12,6 +13,12 @@ export
|
|||
BINARY_NAME=photoprism
|
||||
GOIMPORTS=goimports
|
||||
|
||||
# Build version.
|
||||
SEMVER_MAJOR ?= 0
|
||||
SEMVER_MINOR ?= $(shell date -u +%y%m)
|
||||
SEMVER_PATCH ?= $(shell date -u +%d)
|
||||
SEMVER_VERSION ?= $(SEMVER_MAJOR).$(SEMVER_MINOR).$(SEMVER_PATCH)
|
||||
|
||||
# Build parameters.
|
||||
BUILD_PATH ?= $(shell realpath "./build")
|
||||
BUILD_DATE ?= $(shell date -u +%y%m%d)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue