Dev : Extensions : install.rdf

From MozillaZine Knowledge Base

(Difference between revisions)
Revision as of 20:44, 26 July 2004
Asqueella (Talk | contribs)

<-- Previous diff
Revision as of 08:09, 27 July 2004
Asqueella (Talk | contribs)
(They change specs too often)
Next diff -->
Line 66: Line 66:
===Extension versioning=== ===Extension versioning===
-According to [] extension version '''must''' be of form ''major.minor.subminor''. No more 5.0pre or 0.5c or 0.1.20040708+ :(+According to [] extension version '''must''' be of form ''[+]''. Versions like 0.5pre are now invalid.

Revision as of 08:09, 27 July 2004

Not sure if it should be here, and not at Dev : install.rdf. Most (maybe all) of information below applies also to themes Asqueella 13:44, 26 Jul 2004 (PDT)

From Firefox 0.9 and Thunderbird 0.7 on, the new Extension Manager is used. In order to be supported by the new EM you have to package your extensions as described in this document by Ben Goodger.

Jed Brown also has a tutorial on repackaging old extension for the new EM.


Creating install.rdf for your extension using tools

You can use any of these tools: Ted Mielczarek's webapp for install.rdf creation or Extenzilla - Windows-only install.rdf and XPI generator by Will Ryan (disscussion thread at MZ forums).

Creating from a template

Alternatively you can create it from template below using the text editor of your choice. See notes below.

<?xml version="1.0"?>
<RDF xmlns="" xmlns:em="">

	<Description about="urn:mozilla:install-manifest">
		<em:name>Sample Extension</em:name>
		<em:description>A sample extension with advanced features</em:description>
		<em:creator>Your Name Here</em:creator>
		<!-- optional items -->
		<em:contributor>A person who helped you</em:contributor>
		<em:contributor>Another one</em:contributor>

			<Description about="urn:mozilla:extension:file:sampleext.jar">
				<!-- optional items -->

		<em:targetApplication> <!-- Firefox -->
 		<em:targetApplication> <!-- Thunderbird -->


Generating GUID

You'll have to generate GUID for each extension you create and put it inside tag. You can either download MS guidgen (Windows), use uuidgen (*nix) or go to irc:// and say 'botbot uuid'.

Extension versioning

According to [1] extension version must be of form[+]. Versions like 0.5pre are now invalid.