Index: templates/manifest.json.tmpl |
=================================================================== |
--- a/templates/manifest.json.tmpl |
+++ b/templates/manifest.json.tmpl |
@@ -33,16 +33,21 @@ |
{%- if metadata.has_section('compat') and metadata.has_option('compat', 'gecko') %} |
, |
"strict_min_version": {{metadata.get('compat', 'gecko')|json}} |
{%- endif %} |
} |
}, |
{%- endif %} |
+ {%- set updateURLSetting = 'updateURL' if releaseBuild else 'devbuildUpdateURL' %} |
+ {%- if metadata.has_option('general', updateURLSetting) %} |
+ "update_url": {{metadata.get('general', updateURLSetting)|json}}, |
+ {%- endif %} |
+ |
{%- if pageAction %} |
"page_action": { |
"default_icon": {{pageAction.icon|json}}, |
{%- if pageAction.popup %} |
"default_popup": {{pageAction.popup|json}}, |
{%- endif %} |
"default_title": "__MSG_name__" |
}, |