User:Ssitter/UnifiedLightning: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
No edit summary
 
m (update links for lightning 0.5)
Line 4: Line 4:


Basically you'll need to:
Basically you'll need to:
* download [http://releases.mozilla.org/pub/mozilla.org/addons/2313/ lightning-0.3.1-tb-linux.xpi] and [http://releases.mozilla.org/pub/mozilla.org/addons/2313/ lightning-0.3.1-tb-windows.xpi]
* download [http://releases.mozilla.org/pub/mozilla.org/addons/2313/lightning-0.5-tb-linux.xpi lightning-0.5-tb-linux.xpi] and [http://releases.mozilla.org/pub/mozilla.org/addons/2313/lightning-0.5-tb-win.xpi lightning-0.5-tb-win.xpi]
* rename both .xpi files to .zip and extract them to the same folder
* 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/Linux_x86-gcc3/components

Revision as of 21:24, 24 August 2007

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.5-tb-linux.xpi and lightning-0.5-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