This project continues to maintain xulrunner-stub sources extracted from mozilla's repository and makes it built against Firefox SDK. Background: mozilla had removed xulrunner sources from their repository (issue).
-
Install MS Visual Studio 2013 (Express for Desktop or Community Editions are OK).
-
Clone this project.
-
Download Firefox SDK. e.g. http://ftp.mozilla.org/pub/firefox/nightly/latest-mozilla-aurora/firefox-47.0a2.en-US.win32.sdk.zip . Unzip it in the project directory, and make sure the directory name is
firefox-sdk
. -
Open
msvc/xulrunner-stub.sln
with Visual Studio, and build in release mode (debug mode doesn't work currently). If all is OK, you'll getmsvc/Release/xulrunner-stub.exe
.
Layout your xulrunner app like this:
<your_app_dir>
xulrunner/ <- copy firefox's files here.
xulrunner-stub.exe
mozglue.dll <- copy firefox's mozglue.dll here.
application.ini
...
Notes
- You may use firefox acting as xulrunner.
- I'm not able to remove
xulrunner-stub.exe
's dependency onmozglue.dll
so you have to place the latter under the same directory of the former.
Patches are welcome!
xulrunner/stub/nsXULStub.cpp
: The main source file, was removed from mozilla's repository.xpcom/build/nsXPCOMPrivate.h
: Missing from firefox sdk, so copied to this project.toolkit/xre/nsWindowsWMain.cpp
: Ditto.