LEFT | RIGHT |
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 Loading... |
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 %} | |
40 | |
41 {%- set updateURLSetting = 'updateURL' if releaseBuild else 'devbuildUpdateURL
' %} | |
42 {%- if metadata.has_option('general', updateURLSetting) %} | |
43 "update_url": {{metadata.get('general', updateURLSetting)|json}}, | |
44 {%- endif %} | 46 {%- endif %} |
45 | 47 |
46 {%- if pageAction %} | 48 {%- if pageAction %} |
47 "page_action": { | 49 "page_action": { |
48 "default_icon": {{pageAction.icon|json}}, | 50 "default_icon": {{pageAction.icon|json}}, |
49 {%- if pageAction.popup %} | 51 {%- if pageAction.popup %} |
50 "default_popup": {{pageAction.popup|json}}, | 52 "default_popup": {{pageAction.popup|json}}, |
51 {%- endif %} | 53 {%- endif %} |
52 "default_title": "__MSG_name__" | 54 "default_title": "__MSG_name__" |
53 }, | 55 }, |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 {%- endif %} | 108 {%- endif %} |
107 | 109 |
108 {%- if metadata.has_option('general', 'managedStorageSchema') %} | 110 {%- if metadata.has_option('general', 'managedStorageSchema') %} |
109 "storage": { | 111 "storage": { |
110 "managed_schema": {{metadata.get('general', 'managedStorageSchema')|json}} | 112 "managed_schema": {{metadata.get('general', 'managedStorageSchema')|json}} |
111 }, | 113 }, |
112 {%- endif %} | 114 {%- endif %} |
113 | 115 |
114 "_dummy": false | 116 "_dummy": false |
115 } | 117 } |
LEFT | RIGHT |