-
Notifications
You must be signed in to change notification settings - Fork 27
CompilingThePlugin
leeor edited this page Jan 17, 2014
·
1 revision
Instructions on checking out and compiling the source code.
- An SVN client - such as TortoiseSVN for Windows.
- The Mozilla source code - get it here.
- Microsoft's Visual Studio - I used VS 2008.
Optionally, to sign XPIs and updates:
- McCoy
- Network Security Services (NSS) - from the NSS Mozilla FTP site, make sure you get the Windows package.
- Netscape Portable Runtime (NPR) - from the NPR Mozilla FTP site, make sure you get the Windows package.
- Microsoft's tool to import PVK files - pvkimprt.exe
- Head over to [http://code.google.com/p/ff-activex-host/source/checkout the sources repository] and follow the guidelines to check out a copy of the code from the SVN repository.
- I placed the Mozilla sources in c:\src\mozilla, you will need to change the include directories of the project if you places the sources in a different location.
- The 'easiest' way to get all the include files is to actually build the Mozilla sources, which is not that easy, but follow [https://developer.mozilla.org/en/Build_Documentation this guide].
- Build the plugin.
Useful articles about signing XPIs:
- https://developer.mozilla.org/En/Signing_a_XPI
- http://oyoy.eu/huh/firefox-extension-code-signed-with-spc-pvk/
Important:
- 7z cannot created signed XPIs. It's good enough for unsigned XPIs, but it will not be able to create proper signed XPIs.
Create the directory structure you desire under a folder named 'signed'
c:\tools\nss-3.9\bin\signtool.exe -d <certificate-path> -k <certificate-nickname> -p <password> signed
From within the 'signed' folder execute:
c:\mozilla-build\info-zip\zip <XPI-name> META-INF\zigbert.rsa
c:\mozilla-build\info-zip\zip -r -D <XPI-name> * -x META-INF\zigbert.rsa