From daaa12e29baece3875e3aedca4f58167fd04eb8f Mon Sep 17 00:00:00 2001 From: Romain Vigier Date: Tue, 15 Oct 2019 17:42:38 +0200 Subject: [PATCH] Add version number in zip filename --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index eaa7614..0ff9506 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,8 @@ UUID = nightthemeswitcher@romainvigier.fr GSEXT_DIR_LOCAL = $(HOME)/.local/share/gnome-shell/extensions +VERSION = $(shell grep '"version"' ./src/metadata.json | sed 's/.*\s\([0-9.]*\),/\1/') + .PHONY: build build: clean @@ -13,7 +15,7 @@ install: build .PHONY: zip zip: build - zip -jr ./build/$(UUID).zip ./build + zip -jr ./build/$(UUID).$(VERSION).zip ./build rm -r ./build/$(UUID) .PHONY: clean