diff --git a/Makefile b/Makefile index cd645d8..005b6eb 100644 --- a/Makefile +++ b/Makefile @@ -83,8 +83,8 @@ _build: all mkdir -p $$lf/LC_MESSAGES; \ cp $$l $$lf/LC_MESSAGES/dash-to-panel.mo; \ done; -ifdef COMMIT +ifneq ($(and $(COMMIT),$(VERSION)),) sed -i 's/"version": [[:digit:]][[:digit:]]*/"version": $(VERSION),\n"commit": "$(COMMIT)"/' _build/metadata.json; -else +else ifneq ($(VERSION),) sed -i 's/"version": [[:digit:]][[:digit:]]*/"version": $(VERSION)/' _build/metadata.json; endif diff --git a/metadata.json b/metadata.json index 294e76f..96f7d24 100644 --- a/metadata.json +++ b/metadata.json @@ -6,5 +6,5 @@ "shell-version": [ "3.18", "3.20", "3.22", "3.24", "3.26" ], "url": "https://github.com/jderose9/dash-to-panel", "gettext-domain": "dash-to-panel", -"version": 0 +"version": 9999 }