From e8375f91cdfedc51029bb28d76bb1d9ca1f76f8f Mon Sep 17 00:00:00 2001 From: Andrei Petcu Date: Fri, 10 Mar 2017 14:01:57 +0200 Subject: [PATCH] #2433 Changed the XML namespaces to please jpm sign (#2434) * #2433 changed the legacy install.rdf to match MDN https://developer.mozilla.org/en-US/Add-ons/Install_Manifests * #2433 changed webext install.rdf to match MDN docs https://developer.mozilla.org/en-US/Add-ons/Install_Manifests * #2433 changed property added by mistake * #2433 changed localization XML namespaces to match install.rdf * #2433 small fixes --- platform/firefox/install.rdf | 106 +++++++++++++++++------------------ platform/webext/install.rdf | 51 ++++++++--------- tools/make-firefox-meta.py | 14 ++--- tools/make-webext-meta.py | 14 ++--- 4 files changed, 93 insertions(+), 92 deletions(-) diff --git a/platform/firefox/install.rdf b/platform/firefox/install.rdf index 8cb7a2edd..21bf2861a 100644 --- a/platform/firefox/install.rdf +++ b/platform/firefox/install.rdf @@ -1,64 +1,64 @@ - - - - uBlock0@raymondhill.net - {version} - {name} - {description} - {homepage} - {author} - Deathamns - Alex Vallat - Manuel Reimer - 2 - true - true - 2 + + + + uBlock0@raymondhill.net + {version} + {name} + {description} + {homepage} + {author} + Deathamns + Alex Vallat + Manuel Reimer + 2 + true + true + 2 {localized} - - - {{ec8030f7-c20a-464f-9b0e-13a3a9e97384}} - 24.0 - * - - + + + {{ec8030f7-c20a-464f-9b0e-13a3a9e97384}} + 24.0 + * + + - - - {{aa3c5121-dab2-40e2-81ca-7ea25febc110}} - 24.0 - * - - + + + {{aa3c5121-dab2-40e2-81ca-7ea25febc110}} + 24.0 + * + + - - - {{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}} - 2.21 - * - - + + + {{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}} + 2.21 + * + + - - - {{8de7fcbb-c55c-4fbe-bfc5-fc555c87dbc4}} - 25.0 - 27.* - - + + + {{8de7fcbb-c55c-4fbe-bfc5-fc555c87dbc4}} + 25.0 + 27.* + + - - - {{3550f703-e582-4d05-9a08-453d09bdfdc6}} - 31.0 - 45.* - - - - + + + {{3550f703-e582-4d05-9a08-453d09bdfdc6}} + 31.0 + 45.* + + + + diff --git a/platform/webext/install.rdf b/platform/webext/install.rdf index 35a548e72..5039da2c7 100644 --- a/platform/webext/install.rdf +++ b/platform/webext/install.rdf @@ -1,28 +1,29 @@ - - - - uBlock0@raymondhill.net - {version} - {name} - {description} - https://github.com/gorhill/uBlock - {author} - Deathamns - Alex Vallat - Manuel Reimer - 2 - true - true - true + + + + uBlock0@raymondhill.net + {version} + {name} + {description} + https://github.com/gorhill/uBlock + {author} + Deathamns + Alex Vallat + Manuel Reimer + 2 + true + true + true {localized} - - - {{ec8030f7-c20a-464f-9b0e-13a3a9e97384}} - 52.0a1 - * - - - - + + + {{ec8030f7-c20a-464f-9b0e-13a3a9e97384}} + 52.0a1 + * + + + + + diff --git a/tools/make-firefox-meta.py b/tools/make-firefox-meta.py index 773f6a95d..875885fdb 100644 --- a/tools/make-firefox-meta.py +++ b/tools/make-firefox-meta.py @@ -89,14 +89,14 @@ for alpha2 in descriptions: if alpha2 == 'en': continue manifest['localized'].append( - '\n' + t*2 + '\n' + - t3 + '' + alpha2 + '\n' + - t3 + '' + manifest['name'] + '\n' + - t3 + '' + descriptions[alpha2] + '\n' + - t3 + '' + manifest['author'] + '\n' + + '\n' + t*2 + '\n' + + t3 + '' + alpha2 + '\n' + + t3 + '' + manifest['name'] + '\n' + + t3 + '' + descriptions[alpha2] + '\n' + + t3 + '' + manifest['author'] + '\n' + # t3 + '' + ??? + '\n' + - t3 + '' + manifest['homepage'] + '\n' + - t*2 + '' + t3 + '' + manifest['homepage'] + '\n' + + t*2 + '' ) manifest['localized'] = '\n'.join(manifest['localized']) diff --git a/tools/make-webext-meta.py b/tools/make-webext-meta.py index dd21761cd..5e299206f 100644 --- a/tools/make-webext-meta.py +++ b/tools/make-webext-meta.py @@ -63,14 +63,14 @@ for alpha2 in descriptions: if alpha2 == 'en': continue webext_manifest['localized'].append( - '\n' + t*2 + '\n' + - t3 + '' + alpha2 + '\n' + - t3 + '' + webext_manifest['name'] + '\n' + - t3 + '' + descriptions[alpha2] + '\n' + - t3 + '' + webext_manifest['author'] + '\n' + + '\n' + t*2 + '\n' + + t3 + '' + alpha2 + '\n' + + t3 + '' + webext_manifest['name'] + '\n' + + t3 + '' + descriptions[alpha2] + '\n' + + t3 + '' + webext_manifest['author'] + '\n' + # t3 + '' + ??? + '\n' + - t3 + '' + webext_manifest['homepage'] + '\n' + - t*2 + '' + t3 + '' + webext_manifest['homepage'] + '\n' + + t*2 + '' ) webext_manifest['localized'] = '\n'.join(webext_manifest['localized'])