Makefile - Add metadate version update

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
Juraj Oravec 2023-03-05 23:25:29 +01:00
parent a235e783a7
commit 8e573ce062
Signed by: SGOrava
GPG Key ID: 13660A3F1D9F093B

View File

@ -8,12 +8,15 @@ FILES += $(PROJECT)/rss.svg
FILES += $(PROJECT)/clipboard.svg FILES += $(PROJECT)/clipboard.svg
FILES += $(PROJECT)/LICENSE FILES += $(PROJECT)/LICENSE
package: copy_license package: copy_license update_version
zip -X $(PROJECT)_v$(VERSION).zip $(FILES) zip -X $(PROJECT)_v$(VERSION).zip $(FILES)
copy_license: copy_license:
@cp "LICENSE" "$(PROJECT)/LICENSE" @cp "LICENSE" "$(PROJECT)/LICENSE"
update_version:
@sed -i "s/^X-Falkon-Version.*$$/X-Falkon-Version\=$(VERSION)/g" $(PROJECT)/metadata.desktop
clean: clean:
rm -f "./$(PROJECT)/LICENSE" rm -f "./$(PROJECT)/LICENSE"
rm -f "./$(PROJECT)_v$(VERSION).zip" rm -f "./$(PROJECT)_v$(VERSION).zip"