User:Ssitter/UnifiedLightning

From MozillaWiki
Jump to: navigation, search
Ambox outdated.png THIS PAGE MAY BE OUTDATED
This article is in parts, or in its entirety, outdated. Hence, the information presented on this page may be incorrect, and should be treated with due caution until this flag has been lifted. Help by editing the article, or discuss its contents on the talk page.

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:

For Thunderbird 3.0 you'll need Lightning 1.0b1 and for Thunderbird 3.1 it works with Lightning 1.0b2!

  • 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

This does also work on 64bit systems!