Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Sample XUL standalone application (windows exe)

680 views
Skip to first unread message

Shibu Narayanan

unread,
Feb 10, 2012, 1:51:50 AM2/10/12
to dev-te...@lists.mozilla.org
Hi,
Where can I get a sample XUL standalone application, one that compiles
to a windows exe?
Most of the opensource projects I have seen on the internet packages it
to XPI (plugin).
If it also contains a build (make) script, then it will be great.

-Shibu

Philipp Wagner

unread,
Feb 15, 2012, 8:35:36 AM2/15/12
to
Hi,

Am 10.02.2012 07:51, Shibu Narayanan wrote:
> Where can I get a sample XUL standalone application, one that compiles
> to a windows exe?

You should have a directory structure like this
application.ini
chrome.manifest
...some more files...
xulrunnner
xulrunner/xulrunner-stub.exe
...

Just copy the xulrunner/xulrunner-stub.exe to the directory where the
application.ini lives, rename it however you like (e.g.
yourapplication.exe) and that's it. You can now start your application
with that exe.

> Most of the opensource projects I have seen on the internet packages it
> to XPI (plugin).
> If it also contains a build (make) script, then it will be great.

There is no need to build your own exe, just copy all files in the right
directories. Of course depending on your application build/release
process you can write a Makefile to do that for you.

Philipp

Shibu Narayanan

unread,
Feb 16, 2012, 1:42:10 AM2/16/12
to dev-te...@lists.mozilla.org
Thank you Michael and Philipp.
I downloaded the sample app from https://developer.mozilla.org/en/Getting_started_with_XULRunner
and put the xulrunner-stub.exe (got it from xulrunner installation directory) in the "root" directory and it works exactly as I wanted.

Now my directory structure looks like this(based on the above sample application)...

my-app-dir/
|--chrome/
|--defaults/
|--extantions/
|--updates/
|--application.ini
|--chrome.manifest
|--my-app.exe (newly added file. This was renamed from "xulrunner-stub.exe". This was copied from XULRunner installation dir)



-Shibu
_______________________________________________
dev-tech-xul mailing list
dev-te...@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-xul

reverendlinux

unread,
Feb 21, 2012, 11:48:50 AM2/21/12
to
Philipp,

Just wanted to say thanks for that tip. Although I haven't written
any XUL apps for Windows, this is a handy bit of info. I'll be
tucking it away for the future.

Cheers!
0 new messages