From 8e573ce062aa299a84b08392fc1d5e3152bfd88a Mon Sep 17 00:00:00 2001 From: Juraj Oravec Date: Sun, 5 Mar 2023 23:25:29 +0100 Subject: [PATCH] Makefile - Add metadate version update Signed-off-by: Juraj Oravec --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0185899..ccddaaa 100644 --- a/Makefile +++ b/Makefile @@ -8,12 +8,15 @@ FILES += $(PROJECT)/rss.svg FILES += $(PROJECT)/clipboard.svg FILES += $(PROJECT)/LICENSE -package: copy_license +package: copy_license update_version zip -X $(PROJECT)_v$(VERSION).zip $(FILES) copy_license: @cp "LICENSE" "$(PROJECT)/LICENSE" +update_version: + @sed -i "s/^X-Falkon-Version.*$$/X-Falkon-Version\=$(VERSION)/g" $(PROJECT)/metadata.desktop + clean: rm -f "./$(PROJECT)/LICENSE" rm -f "./$(PROJECT)_v$(VERSION).zip"