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

Unified Diff: manifest.json.tmpl

Issue 9051052: Changes to Chrome build process (Closed)
Patch Set: Created Dec. 19, 2012, 4:27 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build.py ('k') | packagerChrome.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: manifest.json.tmpl
===================================================================
new file mode 100644
--- /dev/null
+++ b/manifest.json.tmpl
@@ -0,0 +1,73 @@
+/*
+ * This file is part of the Adblock Plus extension,
+ * Copyright (C) 2006-2012 Eyeo GmbH
+ *
+ * Adblock Plus is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 3 as
+ * published by the Free Software Foundation.
+ *
+ * Adblock Plus is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+{
+ "manifest_version": 2,
+ "name": "__MSG_name__{% if experimentalAPI %} experimental build{% endif %}",
+ "description": "__MSG_description__",
+ "default_locale": "en_US",
+ "version": {{version|json}},
+
+ {%- if metadata.has_section('compat') and metadata.has_option('compat', 'chrome') %}
+ "minimum_chrome_version": {{metadata.get('compat', 'chrome')|json}},
+ {%- endif %}
+
+ {%- if not releaseBuild %}
+ "update_url": "https://adblockplus.org/devbuilds/
+ {{- metadata.get('general', 'basename') -}}
+ {%- if experimentalAPI -%}
+ -experimental
+ {%- endif -%}
+ /updates.xml",
+ {%- endif %}
+
+ {%- if pageAction %}
+ "page_action": {
+ "default_icon": {{pageAction.icon|json}},
+ "default_title": "__MSG_name__",
+ "default_popup": {{pageAction.popup|json}}
+ },
+ {%- endif %}
+
+ {%- if icons %}
+ "icons": {{icons|json}},
+ {%- endif %}
+
+ {%- if permissions %}
+ "permissions": {{permissions|json}},
+ {%- endif %}
+
+ {%- if backgroundScripts %}
+ "background": {
+ "scripts": {{backgroundScripts|json}}
+ },
+ {%- endif %}
+
+ {%- if metadata.has_option('general', 'options') %}
+ "options_page": {{metadata.get('general', 'options')|json}},
+ {%- endif %}
+
+ {%- if contentScripts %}
+ "content_scripts": {{contentScripts|json}},
+ {%- endif %}
+
+ {%- if webAccessible %}
+ "web_accessible_resources": {{webAccessible|json}},
+ {%- endif %}
+
+ "_dummy": false
+}
« no previous file with comments | « build.py ('k') | packagerChrome.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld