| OLD | NEW |
| 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 20 matching lines...) Expand all Loading... |
| 31 { | 31 { |
| 32 "id": {{metadata.get('general', 'id')|json}} | 32 "id": {{metadata.get('general', 'id')|json}} |
| 33 {%- if metadata.has_section('compat') and metadata.has_option('compat', 'g
ecko') %} | 33 {%- if metadata.has_section('compat') and metadata.has_option('compat', 'g
ecko') %} |
| 34 , | 34 , |
| 35 "strict_min_version": {{metadata.get('compat', 'gecko')|json}} | 35 "strict_min_version": {{metadata.get('compat', 'gecko')|json}} |
| 36 {%- endif %} | 36 {%- endif %} |
| 37 } | 37 } |
| 38 }, | 38 }, |
| 39 {%- endif %} | 39 {%- endif %} |
| 40 | 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 %} |
| 45 |
| 41 {%- if pageAction %} | 46 {%- if pageAction %} |
| 42 "page_action": { | 47 "page_action": { |
| 43 "default_icon": {{pageAction.icon|json}}, | 48 "default_icon": {{pageAction.icon|json}}, |
| 44 {%- if pageAction.popup %} | 49 {%- if pageAction.popup %} |
| 45 "default_popup": {{pageAction.popup|json}}, | 50 "default_popup": {{pageAction.popup|json}}, |
| 46 {%- endif %} | 51 {%- endif %} |
| 47 "default_title": "__MSG_name__" | 52 "default_title": "__MSG_name__" |
| 48 }, | 53 }, |
| 49 {%- endif %} | 54 {%- endif %} |
| 50 | 55 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 {%- endif %} | 106 {%- endif %} |
| 102 | 107 |
| 103 {%- if metadata.has_option('general', 'managedStorageSchema') %} | 108 {%- if metadata.has_option('general', 'managedStorageSchema') %} |
| 104 "storage": { | 109 "storage": { |
| 105 "managed_schema": {{metadata.get('general', 'managedStorageSchema')|json}} | 110 "managed_schema": {{metadata.get('general', 'managedStorageSchema')|json}} |
| 106 }, | 111 }, |
| 107 {%- endif %} | 112 {%- endif %} |
| 108 | 113 |
| 109 "_dummy": false | 114 "_dummy": false |
| 110 } | 115 } |
| OLD | NEW |