Search code examples
xulxulrunner

how to package a standalone xulrunner application


I was wondering what I need to do to create an executable (.exe) file that will run my XUL application?

I'm trying to create an application using Mozilla's XUL format.


Solution

  • Here are the steps:

    1. Compress your application folder tree using WinZip.
    2. Rename the .zip file to have a .xpi extension. (i.e., myApp.xpi).
    3. Assuming you have xulrunner in your PATH, execute: xulrunner --install-app myApp.xpi.

    On Windows, this installs your app to

    c:\Program Files\<Vendor>\<Application Name>\<Application Name>.exe
    

    Where and match exactly with what is in your application.ini file.

    On Linux, the process is similar. On OS X, though, things are quite a bit different. I haven't completed mastered the OS X process yet.

    See also Deploying XULRunner.