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

Unified Diff: sitescripts/extensions/template/updates.json

Issue 29366797: Issue 4697 - Add support for WebExtension-based Firefox development builds (Closed) Base URL: https://hg.adblockplus.org/sitescripts
Patch Set: Updated tests and update manifest generation Created Dec. 5, 2016, 11:21 a.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 | « sitescripts/extensions/template/update.rdf ('k') | sitescripts/extensions/test/oracle/updates.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sitescripts/extensions/template/updates.json
===================================================================
new file mode 100644
--- /dev/null
+++ b/sitescripts/extensions/template/updates.json
@@ -0,0 +1,31 @@
+{
+ "addons":
+ {
+ {%- for extension in extensions %}
+ {{extension.extensionID|json}}:
+ {
+ "updates":
+ [
+ {
+ "version": {{extension.version|json}},
+ "update_link": {{extension.updateURL|json}}
+ {%- if extension.compat -%}
+ ,
+ "applications":
+ {
+ {%- for app in extension.compat %}
+ {{app.id|json}}:
+ {
+ "strict_min_version": {{app.minVersion|json}}
+ }
+ {{- "," if not loop.last else "" }}
+ {%- endfor %}
+ }
+ {%- endif %}
+ }
+ ]
+ }
+ {{- "," if not loop.last else "" }}
+ {%- endfor %}
+ }
+}
« no previous file with comments | « sitescripts/extensions/template/update.rdf ('k') | sitescripts/extensions/test/oracle/updates.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld