Turn on Updates For Your Firefox Extensions.  
  May 11, 2005 filed under Tutorials, Tools  
     
  Introduction  
 

If you want your customers/users to keep up with the latest version of your extensions then youre at the right place. The easiest way to enable firefox extension updates is by using the sample update.rdf file or using the update generation tool below.

DISCLAIMER: You are following this tutorial at your own risk. If anything blows up do some meditation before assigning blame.

 
     
     
  update.rdf  
 
  • Copy the following snippet of code into a file called update.rdf and place it on your website. The location should be same as specified in your updateURL in the install.rdf file for your extension. For example the following is my update.rdf that specifies the details for one of my extensions.
 
     
 

<?xml version="1.0"?>
<r:RDF xmlns:r="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.mozilla.org/2004/em-rdf#">


<r:Description about="urn:mozilla:extension:{5792C231-1F24-4037-974A-5BA26A50C586}">
<updates>
<r:Seq>
<r:li>
<r:Description>
<version>0.6</version>
<targetApplication>
<r:Description>
<id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</id>
<minVersion>0.7</minVersion>
<maxVersion>1.5</maxVersion>
<updateLink>http://www.gmacker.com/web/download/gmapit.xpi</updateLink>
</r:Description>
</targetApplication>
</r:Description>
</r:li>
</r:Seq>
</updates>
<version>0.6</version>
<updateLink>http://www.gmacker.com/web/download/gmapit.xpi</updateLink>
</r:Description>
</r:RDF>

 
 
     
  You need to update the extension GUID that starts with {57... with your own GUID, updateLink and version numbers in 2 places. Thats it! If you subscribe to the Lazy Programmers credo just use the following form to generate your update.rdf contents. This tool only generates the update.rdf for one extension. If you want more then repeat the <r:Description> stanza for other extensions. Lather and rinse.  
     
  Generate contents for your update.rdf file  
     
 
Type your Extensions Version Number
e.g. 0.2:
Type your Extensions Update Link
e.g. http://mysite.com/myext.xpi:
Type your Extensions GUID
e.g. {2721C70-V459-4316-AE29-209C8690E992}

 
     

 

   
   
   
   
   
  Table Of Contents
  >>Introduction
  >>update.rdf
  >>Generate
   
  Links
  >>Contact Us