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

Unified Diff: templates/install.rdf.tmpl

Issue 29562599: Issue 5751 - Removing legacy gecko support (Closed)
Patch Set: Rebase against current master ( 489:293593da6033 ) Created Oct. 10, 2017, 9:25 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
« build.py ('K') | « templates/bootstrap.js.tmpl ('k') | tox.ini » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: templates/install.rdf.tmpl
diff --git a/templates/install.rdf.tmpl b/templates/install.rdf.tmpl
deleted file mode 100644
index 1a8efc5ad81ae27caac89774b3dd5a34d6ae1c0f..0000000000000000000000000000000000000000
--- a/templates/install.rdf.tmpl
+++ /dev/null
@@ -1,109 +0,0 @@
-<?xml version="1.0"?>
-
-<!-- This Source Code Form is subject to the terms of the Mozilla Public
- - License, v. 2.0. If a copy of the MPL was not distributed with this
- - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
-
-{%- macro meta() -%}
-<em:creator>{{metadata.get('general', 'author')}}</em:creator>
-
-{%- for contributor in contributors -%}
-<em:contributor>{{contributor}}</em:contributor>
-{%- endfor -%}
-{%- endmacro %}
-
-<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:em="http://www.mozilla.org/2004/em-rdf#">
-
- <Description about="urn:mozilla:install-manifest">
- <em:id>{{metadata.get('general', 'id')}}</em:id>
- <em:version>{{version}}</em:version>
- <em:name>{{localeMetadata[defaultLocale].name}}</em:name>
- <em:description>{{localeMetadata[defaultLocale].description}}</em:description>
- {{ meta() }}
- {%- if metadata.has_option('homepage', 'default') %}
- <em:homepageURL>{{metadata.get('homepage', 'default')}}</em:homepageURL>
- {%- endif %}
- <em:type>2</em:type>
- <em:bootstrap>true</em:bootstrap>
- {%- if not metadata.has_option('general', 'needMultiprocessShims') %}
- <em:multiprocessCompatible>true</em:multiprocessCompatible>
- {%- endif %}
- {%- if hasWebExtension %}
- <em:hasEmbeddedWebExtension>true</em:hasEmbeddedWebExtension>
- {%- endif %}
-
- {%- if metadata.has_option('general', 'updateURL') %}
- <em:updateURL>
- {{- metadata.get('general', 'updateURL') -}}
- {{- '?reqVersion=%REQ_VERSION%&id=%ITEM_ID%&version=%ITEM_VERSION%&maxAppVersion=%ITEM_MAXAPPVERSION%&status=%ITEM_STATUS%&appID=%APP_ID%&appVersion=%APP_VERSION%&appOS=%APP_OS%&appABI=%APP_ABI%&locale=%APP_LOCALE%&currentAppVersion=%CURRENT_APP_VERSION%&updateType=%UPDATE_TYPE%' -}}
- </em:updateURL>
- {%- endif %}
-
- {%- if metadata.has_option('general', 'icon') %}
- <em:iconURL>{{metadata.get('general', 'icon')}}</em:iconURL>
- {%- endif %}
-
- {%- if metadata.has_option('general', 'about') %}
- <em:aboutURL>{{metadata.get('general', 'about')}}</em:aboutURL>
- {%- endif %}
-
- {%- if metadata.has_option('general', 'options') %}
- <em:optionsURL>{{metadata.get('general', 'options')}}</em:optionsURL>
- {%- endif %}
- {%- if metadata.has_option('general', 'optionsType') %}
- <em:optionsType>{{metadata.get('general', 'optionsType')}}</em:optionsType>
- {%- endif %}
-
- {%- for localeCode in localeMetadata.keys()|sort %}
- {%- set locale = localeMetadata[localeCode] %}
- <em:localized>
- <Description>
- <em:locale>{{localeCode}}</em:locale>
- {{ meta() }}
- <em:name>
- {%- if 'name' in locale -%}
- {{locale.name}}
- {%- else -%}
- {{localeMetadata[defaultLocale].name}}
- {%- endif -%}
- </em:name>
- <em:description>
- {%- if 'description' in locale -%}
- {{locale.description}}
- {%- else -%}
- {{localeMetadata[defaultLocale].description}}
- {%- endif -%}
- </em:description>
- {%- if metadata.has_option('homepage', 'default') %}
- <em:homepageURL>
- {%- if metadata.has_option('homepage', localeCode) -%}
- {{- metadata.get('homepage', localeCode) -}}
- {%- elif metadata.has_option('homepage', localeCode.split('-')[0]) -%}
- {{- metadata.get('homepage', localeCode.split('-')[0]) -}}
- {%- else -%}
- {{- metadata.get('homepage', 'default') -}}
- {%- endif -%}
- </em:homepageURL>
- {%- endif %}
- {%- for translator in locale.translators %}
- <em:translator>{{translator}}</em:translator>
- {%- endfor %}
- </Description>
- </em:localized>
- {%- endfor %}
-
- {%- for appName in metadata.options('compat')|sort %}
- {%- if appName in KNOWN_APPS %}
- <em:targetApplication>
- <Description>
- <!-- {{appName}} -->
- <em:id>{{KNOWN_APPS[appName]}}</em:id>
- <em:minVersion>{{metadata.get('compat', appName).split('/')[0]}}</em:minVersion>
- <em:maxVersion>{{metadata.get('compat', appName).split('/')[1]}}</em:maxVersion>
- </Description>
- </em:targetApplication>
- {%- endif %}
- {%- endfor %}
- </Description>
-</RDF>
« build.py ('K') | « templates/bootstrap.js.tmpl ('k') | tox.ini » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld