mozilla

Compare Revisions

Extension Versioning, Update and Compatibility

Change Revisions

Revision 17843:

Revision 17843 by Mossop on

Revision 17844:

Revision 17844 by Robert Marshall on

Title:
Extension Versioning, Update and Compatibility
Extension Versioning, Update and Compatibility
Slug:
Extension_Versioning,_Update_and_Compatibility
Extension_Versioning,_Update_and_Compatibility
Tags:
Extensions, Add-ons
Extensions, Add-ons
Content:

Revision 17843
Revision 17844
n136    <h2 name="Custom_Update_RDF_Format">n136    <h2 name="Update_RDF_Format">
137      Custom Update RDF Format137      Update RDF Format
t143&lt;RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-nst143<span class="plain">&lt;RDF:RDF xmlns:RDF="http://www.w3.org/1999
>#">/02/22-rdf-syntax-ns#"
144         xmlns:em="http://www.mozilla.org/2004/em-rdf#"&gt;144          xmlns:em="http://www.mozilla.org/2004/em-rdf#"&gt;
145 145 
146  &lt;RDF:Description about="urn:mozilla:extension:{8be6949b-76b9146   &lt;RDF:Description RDF:about="urn:mozilla:extension:{8be6949b
>-4da7-b453-b5f69a11c76e}"&gt;>-76b9-4da7-b453-b5f69a11c76e}"&gt;
147    &lt;em:updates&gt;147     &lt;em:updates&gt;
148      &lt;!-- This is a list of all available updates. They must 148       &lt;!-- This is a list of all available updates. They must
>have unique> have unique
149              URIs, per RDF Grammar rules, I've tacked the versio149               URIs, per RDF Grammar rules, I've tacked the versi
>n number onto>on number onto
150              the end to differentiate versions --&gt;150               the end to differentiate versions --&gt;
151      &lt;RDF:Seq&gt;151       &lt;RDF:Seq&gt;
152        &lt;RDF:li resource="urn:mozilla:extension:{8be6949b-76b9152         &lt;RDF:li RDF:resource="urn:mozilla:extension:{8be6949b
>-4da7-b453-b5f69a11c76e}:2.2"/&gt;>-76b9-4da7-b453-b5f69a11c76e}:2.2"/&gt;
153        &lt;RDF:li resource="urn:mozilla:extension:{8be6949b-76b9153         &lt;RDF:li RDF:resource="urn:mozilla:extension:{8be6949b
>-4da7-b453-b5f69a11c76e}:2.3"/&gt;>-76b9-4da7-b453-b5f69a11c76e}:2.3"/&gt;
154      &lt;/RDF:Seq&gt;154       &lt;/RDF:Seq&gt;
155    &lt;/em:updates&gt;155     &lt;/em:updates&gt;
156 156 
157    &lt;!-- Firefox 0.9 did not support the above RDF grammar, on157     &lt;!-- Firefox 0.9 did not support the above RDF grammar, o
>ly the following>nly the following
158            two simple properties, so we also provide them here f158             two simple properties, so we also provide them here 
>or people>for people
159            upgrading from Firefox 0.9. Note that we've used the 159             upgrading from Firefox 0.9. Note that we've used the
>larger of the two> larger of the two
160            updates here, since Firefox 0.9 was not smart enough 160             updates here, since Firefox 0.9 was not smart enough
>to have any of the> to have any of the
161            logic to patch its Extensions datasource with informa161             logic to patch its Extensions datasource with inform
>tion about existing>ation about existing
162            Extensions that are <i>also</i> compatible with newer162             Extensions that are ''also'' compatible with newer v
> versions of>ersions of
163            the app. --&gt;163             the app. --&gt;
164    &lt;em:version&gt;2.3&lt;/em:version&gt;164     &lt;em:version&gt;2.3&lt;/em:version&gt;
165    &lt;em:updateLink&gt;http://www.mysite.com/fooextension2.3.xp165     &lt;em:updateLink&gt;http://www.mysite.com/fooextension2.3.x
>i&lt;/em:updateLink&gt;>pi&lt;/em:updateLink&gt;
166  &lt;/RDF:Description&gt;166   &lt;/RDF:Description&gt;
167 167 
168  &lt;!-- This Description describes an available update to versi168   &lt;!-- This Description describes an available update to vers
>on 2.2 of>ion 2.2 of
169          FooExtension - it defines a new maxVersion for the Fire169           FooExtension - it defines a new maxVersion for the Fir
>fox>efox
170          targetApplication (format of the targetApplication obje170           targetApplication (format of the targetApplication obj
>ct is the>ect is the
171          same as for the install.rdf file, with the exception of171           same as for the install.rdf file, with the exception o
> the>f the
172          em:updateLink property, which contains a URL to the upd172           em:updateLink property, which contains a URL to the up
>ated XPI) --&gt;>dated XPI) --&gt;
173  &lt;RDF:Description about="urn:mozilla:extension:{8be6949b-76b9173   &lt;RDF:Description RDF:about="urn:mozilla:extension:{8be6949b
>-4da7-b453-b5f69a11c76e}:2.2"&gt;>-76b9-4da7-b453-b5f69a11c76e}:2.2"&gt;
174    &lt;em:version&gt;2.2&lt;/em:version&gt;174     &lt;em:version&gt;2.2&lt;/em:version&gt;
175    &lt;em:targetApplication&gt;175     &lt;em:targetApplication&gt;
176      &lt;Description&gt;176       &lt;RDF:Description&gt;
177        &lt;em:id&gt;{ec8030f7-c20a-464f-9b0e-13a3a9e97384}&lt;/e177         &lt;em:id&gt;{ec8030f7-c20a-464f-9b0e-13a3a9e97384}&lt;/
>m:id&gt;>em:id&gt;
178        &lt;em:minVersion&gt;0.9&lt;/em:minVersion&gt;178         &lt;em:minVersion&gt;0.9&lt;/em:minVersion&gt;
179        &lt;em:maxVersion&gt;1.0&lt;/em:maxVersion&gt;179         &lt;em:maxVersion&gt;1.0&lt;/em:maxVersion&gt;
180        &lt;em:updateLink&gt;http://www.mysite.com/fooextension2.180         &lt;em:updateLink&gt;http://www.mysite.com/fooextension2
>2.xpi&lt;/em:updateLink&gt;>.2.xpi&lt;/em:updateLink&gt;
181      &lt;/Description&gt;181       &lt;/RDF:Description&gt;
182    &lt;/em:targetApplication&gt;182     &lt;/em:targetApplication&gt;
183  &lt;/RDF:Description&gt;183   &lt;/RDF:Description&gt;
184 184 
185  &lt;!-- This Description describes an available update to versi185   &lt;!-- This Description describes an available update to vers
>on 2.3 of>ion 2.3 of
186          FooExtension - (format of the targetApplication object 186           FooExtension - (format of the targetApplication object
>is the> is the
187          same as for the install.rdf file, with the exception of187           same as for the install.rdf file, with the exception o
> the>f the
188          em:updateLink property, which contains a URL to the upd188           em:updateLink property, which contains a URL to the up
>ated XPI) --&gt;>dated XPI) --&gt;
189  &lt;RDF:Description about="urn:mozilla:extension:{8be6949b-76b9189   &lt;RDF:Description RDF:about="urn:mozilla:extension:{8be6949b
>-4da7-b453-b5f69a11c76e}:2.3"&gt;>-76b9-4da7-b453-b5f69a11c76e}:2.3"&gt;
190    &lt;em:version&gt;2.3&lt;/em:version&gt;190     &lt;em:version&gt;2.3&lt;/em:version&gt;
191    &lt;em:targetApplication&gt;191     &lt;em:targetApplication&gt;
192      &lt;Description&gt;192       &lt;RDF:Description&gt;
193        &lt;em:id&gt;{ec8030f7-c20a-464f-9b0e-13a3a9e97384}&lt;/e193         &lt;em:id&gt;{ec8030f7-c20a-464f-9b0e-13a3a9e97384}&lt;/
>m:id&gt;>em:id&gt;
194        &lt;em:minVersion&gt;1.0&lt;/em:minVersion&gt;194         &lt;em:minVersion&gt;1.0&lt;/em:minVersion&gt;
195        &lt;em:maxVersion&gt;1.0&lt;/em:maxVersion&gt;195         &lt;em:maxVersion&gt;1.0&lt;/em:maxVersion&gt;
196        &lt;em:updateLink&gt;http://www.mysite.com/fooextension2.196         &lt;em:updateLink&gt;http://www.mysite.com/fooextension2
>3.xpi&lt;/em:updateLink&gt;>.3.xpi&lt;/em:updateLink&gt;
197      &lt;/Description&gt;197       &lt;/RDF:Description&gt;
198    &lt;/em:targetApplication&gt;198     &lt;/em:targetApplication&gt;
199  &lt;/RDF:Description&gt;199   &lt;/RDF:Description&gt;
200 200 
201&lt;/RDF:RDF&gt;201&lt;/RDF:RDF&gt;</span>

Back to History