Skip to content
Snippets Groups Projects
Commit af48aa15 authored by Philipp Stadler's avatar Philipp Stadler
Browse files

chore: configurable release dir stem and version

parent 6df43fe2
No related branches found
No related tags found
1 merge request!133Feat/external build
Pipeline #13764 passed
...@@ -13,3 +13,6 @@ generated ...@@ -13,3 +13,6 @@ generated
artifacts artifacts
*.d.mk *.d.mk
content/archived-Einführung-in-die-politische-Geschichte-Chinas content/archived-Einführung-in-die-politische-Geschichte-Chinas
templates
/*.apkg
NOTICE
...@@ -11,7 +11,7 @@ GIT_VERSION_RANGES = $(join \ ...@@ -11,7 +11,7 @@ GIT_VERSION_RANGES = $(join \
# files that will change if we fetch new tags => if anything is changed, # files that will change if we fetch new tags => if anything is changed,
# we rebuild all changelogs (in case the history was rewritten somehow) # we rebuild all changelogs (in case the history was rewritten somehow)
# deferred in case we do a fetch first # deferred in case we do a fetch first
GIT_TAG_FILES = $(wildcard $(and $(GIT_DIR),$(GIT_DIR)/).git/refs/tags/*) $(and $(GIT_DIR),$(GIT_DIR)/).git/packed-refs GIT_TAG_FILES = $(wildcard $(or $(GIT_DIR),.git)/refs/tags/*) $(or $(GIT_DIR),.git)/packed-refs
VER_CHANGELOGS_MARKDOWN := $(foreach VER,$(GIT_VERSIONS), \ VER_CHANGELOGS_MARKDOWN := $(foreach VER,$(GIT_VERSIONS), \
$(BUILD_PREFIX)CHANGELOG-$(VER).md) $(BUILD_PREFIX)CHANGELOG-$(VER).md)
VER_CHANGELOGS_HTML := $(foreach VER,$(GIT_VERSIONS), \ VER_CHANGELOGS_HTML := $(foreach VER,$(GIT_VERSIONS), \
......
# part before the npm version in the release directory name # part before the npm version in the release directory name
RELEASE_DIR_STEM = sinologie-anki-pack RELEASE_DIR_STEM ?= sinologie-anki-pack
VERSION := $(shell grep '"version":' package.json -m 1 | cut -d '"' -f 4) VERSION ?= $(shell grep '"version":' package.json -m 1 | cut -d '"' -f 4)
RELEASE_DIR := $(BUILD_PREFIX)$(RELEASE_DIR_STEM)-$(VERSION) RELEASE_DIR := $(BUILD_PREFIX)$(RELEASE_DIR_STEM)-$(VERSION)
RELEASE_ZIP := $(RELEASE_DIR).zip RELEASE_ZIP := $(RELEASE_DIR).zip
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment