| Index: manifest.json.tmpl |
| =================================================================== |
| --- a/manifest.json.tmpl |
| +++ b/manifest.json.tmpl |
| @@ -28,26 +28,32 @@ |
| {%- if not releaseBuild %} |
| "update_url": "https://adblockplus.org/devbuilds/ |
| {{- metadata.get('general', 'basename') -}} |
| {%- if experimentalAPI -%} |
| -experimental |
| {%- endif -%} |
| /updates.xml", |
| + {%- elif metadata.has_option('general', 'updateURL') %} |
| + "update_url": {{metadata.get('general', 'updateURL')|json}}, |
| {%- endif %} |
| {%- if pageAction %} |
| "page_action": { |
| "default_icon": {{pageAction.icon|json}}, |
| "default_title": "__MSG_name__", |
| "default_popup": {{pageAction.popup|json}} |
| }, |
| {%- endif %} |
| + {%- if metadata.has_option('general', 'browserAction') and metadata.get('general', 'browserAction') != '' %} |
| + "browser_action": {}, |
| + {%- endif %} |
| + |
| {%- if icons %} |
| "icons": {{icons|json}}, |
| {%- endif %} |
| {%- if permissions %} |
| "permissions": {{permissions|json}}, |
| {%- endif %} |