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

Side by Side 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.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* This Source Code Form is subject to the terms of the Mozilla Public 1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4 4
5 { 5 {
6 "manifest_version": 2, 6 "manifest_version": 2,
7 {%- if releaseBuild %} 7 {%- if releaseBuild %}
8 "name": "__MSG_name__", 8 "name": "__MSG_name__",
9 {%- else %} 9 {%- else %}
10 "name": "__MSG_name_devbuild__", 10 "name": "__MSG_name_devbuild__",
(...skipping 12 matching lines...) Expand all
23 {%- if metadata.has_section('compat') and metadata.has_option('compat', 'edge' ) %} 23 {%- if metadata.has_section('compat') and metadata.has_option('compat', 'edge' ) %}
24 "minimum_edge_version": {{metadata.get('compat', 'edge')|json}}, 24 "minimum_edge_version": {{metadata.get('compat', 'edge')|json}},
25 {%- endif %} 25 {%- endif %}
26 26
27 {%- if type == 'gecko-webext' %} 27 {%- if type == 'gecko-webext' %}
28 "applications": 28 "applications":
29 { 29 {
30 "gecko": 30 "gecko":
31 { 31 {
32 "id": {{metadata.get('general', 'id')|json}} 32 "id": {{metadata.get('general', 'id')|json}}
33
33 {%- if metadata.has_section('compat') and metadata.has_option('compat', 'g ecko') %} 34 {%- if metadata.has_section('compat') and metadata.has_option('compat', 'g ecko') %}
34 , 35 ,
35 "strict_min_version": {{metadata.get('compat', 'gecko')|json}} 36 "strict_min_version": {{metadata.get('compat', 'gecko')|json}}
36 {%- endif %} 37 {%- endif %}
38
39 {%- set updateURLSetting = 'updateURL' if releaseBuild else 'devbuildUpdat eURL' %}
40 {%- if metadata.has_option('general', updateURLSetting) %}
41 ,
42 "update_url": {{metadata.get('general', updateURLSetting)|json}}
43 {%- endif %}
37 } 44 }
38 }, 45 },
39 {%- endif %} 46 {%- endif %}
40 47
41 {%- if pageAction %} 48 {%- if pageAction %}
42 "page_action": { 49 "page_action": {
43 "default_icon": {{pageAction.icon|json}}, 50 "default_icon": {{pageAction.icon|json}},
44 {%- if pageAction.popup %} 51 {%- if pageAction.popup %}
45 "default_popup": {{pageAction.popup|json}}, 52 "default_popup": {{pageAction.popup|json}},
46 {%- endif %} 53 {%- endif %}
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 {%- endif %} 108 {%- endif %}
102 109
103 {%- if metadata.has_option('general', 'managedStorageSchema') %} 110 {%- if metadata.has_option('general', 'managedStorageSchema') %}
104 "storage": { 111 "storage": {
105 "managed_schema": {{metadata.get('general', 'managedStorageSchema')|json}} 112 "managed_schema": {{metadata.get('general', 'managedStorageSchema')|json}}
106 }, 113 },
107 {%- endif %} 114 {%- endif %}
108 115
109 "_dummy": false 116 "_dummy": false
110 } 117 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld