LEFT | RIGHT |
(no file at all) | |
1 /* | 1 /* |
2 * This file is part of the Adblock Plus extension, | 2 * This file is part of the Adblock Plus extension, |
3 * Copyright (C) 2006-2012 Eyeo GmbH | 3 * Copyright (C) 2006-2012 Eyeo GmbH |
4 * | 4 * |
5 * Adblock Plus is free software: you can redistribute it and/or modify | 5 * Adblock Plus is free software: you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 3 as | 6 * it under the terms of the GNU General Public License version 3 as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
8 * | 8 * |
9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 15 matching lines...) Expand all Loading... |
26 "minimum_chrome_version": {{metadata.get('compat', 'chrome')|json}}, | 26 "minimum_chrome_version": {{metadata.get('compat', 'chrome')|json}}, |
27 {%- endif %} | 27 {%- endif %} |
28 | 28 |
29 {%- if not releaseBuild %} | 29 {%- if not releaseBuild %} |
30 "update_url": "https://adblockplus.org/devbuilds/ | 30 "update_url": "https://adblockplus.org/devbuilds/ |
31 {{- metadata.get('general', 'basename') -}} | 31 {{- metadata.get('general', 'basename') -}} |
32 {%- if experimentalAPI -%} | 32 {%- if experimentalAPI -%} |
33 -experimental | 33 -experimental |
34 {%- endif -%} | 34 {%- endif -%} |
35 /updates.xml", | 35 /updates.xml", |
| 36 {%- elif metadata.has_option('general', 'updateURL') %} |
| 37 "update_url": {{metadata.get('general', 'updateURL')|json}}, |
36 {%- endif %} | 38 {%- endif %} |
37 | 39 |
38 {%- if pageAction %} | 40 {%- if pageAction %} |
39 "page_action": { | 41 "page_action": { |
40 "default_icon": {{pageAction.icon|json}}, | 42 "default_icon": {{pageAction.icon|json}}, |
41 "default_title": "__MSG_name__", | 43 "default_title": "__MSG_name__", |
42 "default_popup": {{pageAction.popup|json}} | 44 "default_popup": {{pageAction.popup|json}} |
43 }, | 45 }, |
| 46 {%- endif %} |
| 47 |
| 48 {%- if metadata.has_option('general', 'browserAction') and metadata.get('gener
al', 'browserAction') != '' %} |
| 49 "browser_action": {}, |
44 {%- endif %} | 50 {%- endif %} |
45 | 51 |
46 {%- if icons %} | 52 {%- if icons %} |
47 "icons": {{icons|json}}, | 53 "icons": {{icons|json}}, |
48 {%- endif %} | 54 {%- endif %} |
49 | 55 |
50 {%- if permissions %} | 56 {%- if permissions %} |
51 "permissions": {{permissions|json}}, | 57 "permissions": {{permissions|json}}, |
52 {%- endif %} | 58 {%- endif %} |
53 | 59 |
(...skipping 10 matching lines...) Expand all Loading... |
64 {%- if contentScripts %} | 70 {%- if contentScripts %} |
65 "content_scripts": {{contentScripts|json}}, | 71 "content_scripts": {{contentScripts|json}}, |
66 {%- endif %} | 72 {%- endif %} |
67 | 73 |
68 {%- if webAccessible %} | 74 {%- if webAccessible %} |
69 "web_accessible_resources": {{webAccessible|json}}, | 75 "web_accessible_resources": {{webAccessible|json}}, |
70 {%- endif %} | 76 {%- endif %} |
71 | 77 |
72 "_dummy": false | 78 "_dummy": false |
73 } | 79 } |
LEFT | RIGHT |