Skip to content

Commit

Permalink
Dev 0.12 (#260)
Browse files Browse the repository at this point in the history
- fix build add-on version for releases
  • Loading branch information
s-allius authored Dec 22, 2024
1 parent 3595265 commit 338b869
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ha_addons/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 $@
Expand Down Expand Up @@ -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 $< $@
Expand Down

0 comments on commit 338b869

Please sign in to comment.