From 338b86964d28d18e50e8bf2ae365cd5744f83ab0 Mon Sep 17 00:00:00 2001 From: Stefan Allius <122395479+s-allius@users.noreply.github.com> Date: Mon, 23 Dec 2024 00:02:40 +0100 Subject: [PATCH] Dev 0.12 (#260) - fix build add-on version for releases --- ha_addons/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ha_addons/Makefile b/ha_addons/Makefile index b52954c..d58afb2 100644 --- a/ha_addons/Makefile +++ b/ha_addons/Makefile @@ -91,7 +91,7 @@ $(DST)/requirements.txt : $(SRC)/requirements.txt @cp $< $@ $(ADDON_PATH)/%.yaml: $(TEMPL)/%.jinja $(TEMPL)/.data.json - $(JINJA) --strict --format=json $^ -o $@ + $(JINJA) --strict -D AppVersion=$(VERSION) --format=json $^ -o $@ $(TEMPL)/.data.json: FORCE rsync --checksum $(TEMPL)/$(STAGE)_data.json $@ @@ -121,7 +121,7 @@ $(repro_all_subdirs) : mkdir -p $@ $(repro_all_templates) : $(INST_BASE)/ha_addon_%/config.yaml: $(TEMPL)/config.jinja $(TEMPL)/%_data.json $(SRC)/.version - $(JINJA) --strict -D AppVersion=$(VERSION) $< $(filter %.json,$^) -o $@ + $(JINJA) --strict -D AppVersion=$(VERSION)-$* $< $(filter %.json,$^) -o $@ $(repro_root_files) : %/CHANGELOG.md : ../CHANGELOG.md cp $< $@