• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

8. Hack the Chrome Cleanly > 88. Make, Bundle, and Publish an XPI

Make, Bundle, and Publish an XPI

Create an XPI installer for your extension and publish it for others to discover and use.

If you’ve stepped through the hacks in this chapter in order, or done any serious XUL experimentation, then you’re ready to consider releasing that XML as an extension. You have your content, locale, and skin files in place as a package, written and tested. All that is left is to bundle it up and release it. The best method to bundle it up is to use Mozilla’s Cross-Platform Install (XPI) technology. XPI files are compressed files that can be put together using standard zip tools. Firefox can load and install XPI files.

This hack explores the structure of the XPI format—in particular, which files go where in the compressed archive. We’ll also dissect the install.rdf install file to ensure that installation is successful. Finally, to ensure your extension is not hidden away, we’ll discuss the best ways to distribute it for people to use.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint