User:Ssitter/UnifiedLightning

< User:Ssitter
Revision as of 20:42, 4 November 2007 by Ssitter (talk | contribs) (0.5->0.7)

HowTo repackage Lightning for Linux and Windows

The purpose of this document is to provide a short tutorial on how to repackage Lightning so that it ships all binaries parts for Linux and Windows and can be installed in a shared profile.

Basically you'll need to:

  • download lightning-0.7-tb-linux.xpi and lightning-0.7-tb-win.xpi
  • rename both .xpi files to .zip and extract them to the same folder
  • create new subfolder ./platform/Linux_x86-gcc3/components
  • create new subfolder ./platform/WINNT_x86-msvc/components
  • move all *.so files from ./components to ./platform/Linux_x86-gcc3/components
  • move all *.dll files from ./components to ./platform/WINNT_x86-msvc/components
  • The final folder structure should look like
lightning.xpi
 + chrome
 + components
 + defaults
 + js
 + platform
    + Linux_x86-gcc3
       + components
    + WINNT_x86-msvc
       + components
 + chrome.manifest
 + install.rdf
  • open file ./install.rdf with text editor and search for em:targetPlatform
  • change the line to
   <em:targetPlatform>WINNT_x86-msvc</em:targetPlatform>
   <em:targetPlatform>Linux_x86-gcc3</em:targetPlatform>
  • package all files in a new zip archive and rename it from .zip to .xpi