Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: templates/manifest.json.tmpl

Issue 29366803: Issue 4700 - Allow specifying devbuilds update URL in manifest.json for WebExtensions builds (Closed) Base URL: https://hg.adblockplus.org/buildtools
Patch Set: Fixed manifest key Created Dec. 5, 2016, 8:57 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: templates/manifest.json.tmpl
===================================================================
--- a/templates/manifest.json.tmpl
+++ b/templates/manifest.json.tmpl
@@ -25,20 +25,27 @@
{%- endif %}
{%- if type == 'gecko-webext' %}
"applications":
{
"gecko":
{
"id": {{metadata.get('general', 'id')|json}}
+
{%- if metadata.has_section('compat') and metadata.has_option('compat', 'gecko') %}
,
"strict_min_version": {{metadata.get('compat', 'gecko')|json}}
{%- endif %}
+
+ {%- set updateURLSetting = 'updateURL' if releaseBuild else 'devbuildUpdateURL' %}
+ {%- if metadata.has_option('general', updateURLSetting) %}
+ ,
+ "update_url": {{metadata.get('general', updateURLSetting)|json}}
+ {%- endif %}
}
},
{%- endif %}
{%- if pageAction %}
"page_action": {
"default_icon": {{pageAction.icon|json}},
{%- if pageAction.popup %}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld