RE: Sample XUL standalone application (windows exe)

Shibu Narayanan <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xpfe
Message-ID <d3050b2b-180b-479c-bcfa-c47a45745464@default>
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

-----Original Message-----
From: Philipp Wagner [mailto:[email protected]] 
Sent: Wednesday, February 15, 2012 7:06 PM
To: [email protected]
Subject: Re: Sample XUL standalone application (windows exe)

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
_______________________________________________
dev-tech-xul mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xul
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.