Home

Awesome

XULApp StarterKit

XULApp StarterKit is a generic framework for XULRunner applications, like Rich Client Platform .

It provides the "plumbing" that, before, every developer had to write themselves—saving state, connecting actions to menu items, toolbar items and keyboard shortcuts; window management, add-ons mechanism, update mechanism and so on.

XULApp StarterKit provides a reliable and flexible application architecture. An architecture that encourages sustainable development practices. Because the XULApp StarterKit architecture is modular, it's easy to create applications that are ro bust and extensible.

Included in the distribution package:

XULApp StarterKit Build Scripts

XULApp StarterKit include a collection of build scripts for packaging a XULRunner Application into distributable bundles for Mac, Windows, and Linux.

Build Scripts is based on Zotero Standalone build utility.

Benefits

Download Pre-build Binary

Download Pre-build XULApp Starterkit.

Build XULApp StarterKit (Optional)

Build your own branding XULApp StarterKit

  1. Fork this project and checkout.
  2. Change BUILD_MAC / BUILD_LINUX / BUILD_WIN32 variables in config.sh to setting operating systems you want to build.
  3. Change Profile variable in config.sh to specifies the path to use for the application's profile. XUL Application Packaging
  4. Customize branding and metadata to your liking.
  5. run fetch_xulrunner.sh to downloading xulrunner runtime from ftp.mozilla.org.[ONLY ONCE]
  6. run build.sh

Make your own application in XULApp StarterKit Project

app/ directory contains standard XULRunner application structure.

  1. Put your application files in app/ directory and modify app/chrome/content/xulapp/xulapp.xul main window.
  2. Build XULApp StarterKit.

Make your own application as First Add-on (Recommended)

Download pre-built XULApp StarterKit (or your own build) and make your application as add-on and install to XULApp StarterKit. This will make your application more flexible.

How to install Add-ons

Launch XULApp StarterKit and install add-on with 'Tools'->'Add-ons Manager'.

Detail: How to install Add-ons wiki.

HTML5, CSS3 and JavaScript

Don't need to learn XUL or XULRunner. XULApp StarterKit help you for creating beautiful desktop apps using your web development skills.

How-to

  1. Download pre-built XULApp StarterKit
  2. Download sample application for XULApp StarterKit
  3. Launch XULApp StarterKit and install add-on with 'Add-ons Manager'.

Sample Application Add-ons For XULApp StarterKit:

Useful Add-ons For XULApp StarterKit

Auto-Load Modules

Register Your Modules in prefs.js , XULApp StarterKit Will auto-load when startup. All Modules 's variables will in XULApp scope.

Register Notication Modules Example

In prefs.js Add:

pref("xulapp.modules.notification", "chrome://xulapp/content/modules/notification.js");

Now, You can using Notication Service from any pages.

var Notification = XULApp.Notification;
Notification.showNotication('Title', 'Text');

Tips

Generating icons

Use http://iconverticons.com/ to generate app icons for all platforms. Put your source image in icons/default/source folder and the gener ated images in the icons/default folder.

License

XULApp StarterKit are licensed under the MPL License. See LICENSE for more details.