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

Side by Side Diff: templates/manifest.json.tmpl

Issue 29365583: Issue 4670 - Add a new build type for Gecko-based WebExtensions (Closed) Base URL: https://hg.adblockplus.org/buildtools
Patch Set: Fixed application info Created Nov. 30, 2016, 12:21 p.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 | « templates/chromeInfo.js.tmpl ('k') | 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__",
11 {%- endif %} 11 {%- endif %}
12 12
13 "short_name": "__MSG_name__", 13 "short_name": "__MSG_name__",
14 "description": "__MSG_description__", 14 "description": "__MSG_description__",
15 "default_locale": "en_US", 15 "default_locale": "en_US",
16 "version": {{version|json}}, 16 "version": {{version|json}},
17 "author": {{metadata.get('general', 'author')|json}}, 17 "author": {{metadata.get('general', 'author')|json}},
18 18
19 {%- if metadata.has_section('compat') and metadata.has_option('compat', 'chrom e') %} 19 {%- if metadata.has_section('compat') and metadata.has_option('compat', 'chrom e') %}
20 "minimum_chrome_version": {{metadata.get('compat', 'chrome')|json}}, 20 "minimum_chrome_version": {{metadata.get('compat', 'chrome')|json}},
21 {%- endif %} 21 {%- endif %}
22 22
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' %}
28 "applications":
29 {
30 "gecko":
31 {
32 "id": {{metadata.get('general', 'id')|json}}
33 {%- if metadata.has_section('compat') and metadata.has_option('compat', 'g ecko') %}
34 ,
35 "strict_min_version": {{metadata.get('compat', 'gecko')|json}}
36 {%- endif %}
37 }
38 },
39 {%- endif %}
40
27 {%- if pageAction %} 41 {%- if pageAction %}
28 "page_action": { 42 "page_action": {
29 "default_icon": {{pageAction.icon|json}}, 43 "default_icon": {{pageAction.icon|json}},
30 {%- if pageAction.popup %} 44 {%- if pageAction.popup %}
31 "default_popup": {{pageAction.popup|json}}, 45 "default_popup": {{pageAction.popup|json}},
32 {%- endif %} 46 {%- endif %}
33 "default_title": "__MSG_name__" 47 "default_title": "__MSG_name__"
34 }, 48 },
35 {%- endif %} 49 {%- endif %}
36 50
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 {%- endif %} 94 {%- endif %}
81 95
82 {%- if metadata.has_option('general', 'managedStorageSchema') %} 96 {%- if metadata.has_option('general', 'managedStorageSchema') %}
83 "storage": { 97 "storage": {
84 "managed_schema": {{metadata.get('general', 'managedStorageSchema')|json}} 98 "managed_schema": {{metadata.get('general', 'managedStorageSchema')|json}}
85 }, 99 },
86 {%- endif %} 100 {%- endif %}
87 101
88 "_dummy": false 102 "_dummy": false
89 } 103 }
OLDNEW
« no previous file with comments | « templates/chromeInfo.js.tmpl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld