Mercurial > addons > firefox-addons > tab-mover
changeset 13:e4391e12b799
Generate manifest.json
author | Guido Berhoerster <guido+tab-mover@berhoerster.name> |
---|---|
date | Wed, 22 Feb 2017 09:11:14 +0100 |
parents | e32b90567f39 |
children | 288f880882c5 |
files | Makefile manifest.json manifest.json.in |
diffstat | 3 files changed, 34 insertions(+), 30 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Mon Feb 20 18:07:00 2017 +0100 +++ b/Makefile Wed Feb 22 09:11:14 2017 +0100 @@ -25,8 +25,9 @@ VERSION = 3 EXT_NAME = $(subst -,_,$(NAME))-$(VERSION) -INKSCAPE := inkscape -INFOZIP := zip +INKSCAPE := inkscape +INFOZIP := zip +SED := sed BITMAP_ICONS = icons/tab-mover-48.png \ icons/tab-mover-96.png @@ -57,6 +58,9 @@ $(foreach icon,$(BITMAP_ICONS),$(eval $(call generate-icon-rule,$(icon)))) +manifest.json: manifest.json.in + $(SED) 's|@VERSION@|$(VERSION)|g' $< >$@ + clean: -rm -f $(BITMAP_ICONS)
--- a/manifest.json Mon Feb 20 18:07:00 2017 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,28 +0,0 @@ -{ - "manifest_version": 2, - "name": "__MSG_extensionName__", - "version": "3", - "description": "__MSG_extensionDescription__", - "author": "Guido Berhoerster", - "homepage_url": "https://code.guido-berhoerster.org/addons/firefox-addons/tab-mover/", - "applications": { - "gecko": { - "id": "tab-mover@code.guido-berhoerster.org", - "strict_min_version": "51.0" - } - }, - "icons": { - "48": "icons/tab-mover-48.png", - "96": "icons/tab-mover-96.png" - }, - "default_locale": "en", - "permissions": [ - "contextMenus", - "tabs" - ], - "background": { - "scripts": [ - "background.js" - ] - } -}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/manifest.json.in Wed Feb 22 09:11:14 2017 +0100 @@ -0,0 +1,28 @@ +{ + "manifest_version": 2, + "name": "__MSG_extensionName__", + "version": "@VERSION@", + "description": "__MSG_extensionDescription__", + "author": "Guido Berhoerster", + "homepage_url": "https://code.guido-berhoerster.org/addons/firefox-addons/tab-mover/", + "applications": { + "gecko": { + "id": "tab-mover@code.guido-berhoerster.org", + "strict_min_version": "51.0" + } + }, + "icons": { + "48": "icons/tab-mover-48.png", + "96": "icons/tab-mover-96.png" + }, + "default_locale": "en", + "permissions": [ + "contextMenus", + "tabs" + ], + "background": { + "scripts": [ + "background.js" + ] + } +}