Sans Browser

XAPGen 0.1 Alpha Release

July 20th, 2007 by enefekt

If you missed the announcement post, go and read that to get the low-down.

XAPGen is a project to provide tools to help automate the generation of XULRunner projects and packaging for distribution.

I now have a first release using Ant, and have done preliminary testing on Windows, Linux, and Mac.

First, you can generate brand-new XULRunner projects just by passing in an app/project name. Then you will have a project that is ready-to-go to package apps for Windows, Linux, and Mac.

Here’s what I used on the various platforms to get started:

  • Mac OS X: Xcode Tools and you’re up and running. You can create packages for all three major platforms
  • Linux: Java SDK, and Ant. You can create packages for all three major platforms
  • Windows: Cygwin, Java SDK, and Ant. You can create packages for Windows and Linux. (The Mac build relies on some UNIX tools not available in Cygwin)

There are also tasks for each platform: buildAndRunMac, buildAndRunWin, buildAndRunLinux. These will build and immediately run your app and open the Error console for debugging.

So this obviously isn’t for the projects building custom XULRunner binaries from the Moz source tree, but rather for devs using XULRunner as-is.

There is a lot of stuff that I would like to do to make this even better. And there are some really cool ways to extend this. Right now I thought I would get a tracer bullet out-the-door first. (One thing I know I want to do soon is optimize the buildAndRun tasks better)

So if you get a chance to play around with this, let me know what you think.

Check out the README file for the details.

Download: XAPGen 0.1a

Filed under: Mozilla, Mozpad, XAPGen, XULRunner

2 Comments

  1. Bruno Says:

    Hi,

    I just discovered with much enthusiasm your utility to package XULRunner based applications.

    My application uses SQLite storage and there seems to be issue with the v1.8.* releases of XULRunner and SQLite storage.

    I took a look at the newly released XULRunner 1.9 (http://releases.mozilla.org/pub/mozilla.org/xulrunner/releases/1.9.0.0/) and Ièm wondering what needs to be done to update XAPGen so that it uses this new version of XULRunner.

    Thanks for everything,

    Bruno Morency

  2. enefekt Says:

    Thanks for the heads up Bruno! Yes, I need to revisit this. I have been meaning to update it for the 1.9 release.

    Will try and look into this soon. Will post any updates on this blog.

ok2