xpinstall/packager/os2/chatzilla.jst
author sdwilsh@shawnwilsher.com
Wed, 23 May 2007 11:08:10 -0700
changeset 1787 dfbcd592e4c1bf1d2f6c5389330e3ae52d0cce9d
parent 1 9b2a99adc05e53cd4010de512f50118594756650
permissions -rw-r--r--
Bug 381468 - Convert toolkit application/x-javascript to application/javascript. r=gavin.sharp

var err = initInstall("Chatzilla v0.5", "Chatzilla", "$Version$"); 
logComment("initInstall: " + err);

addFile("Chatzilla service",
        "bin/components/chatzilla-service.js",
        getFolder("Components"),
        "");

addFile("Chatzilla Chrome",
        "bin/chrome/chatzilla.jar", // jar source folder 
        getFolder("Chrome"),        // target folder
        "");                        // target subdir 

registerChrome(CONTENT | DELAYED_CHROME, getFolder("Chrome","chatzilla.jar"), "content/chatzilla/");
registerChrome(CONTENT | DELAYED_CHROME, getFolder("Chrome","chatzilla.jar"), "content/chatzilla/sm/");
registerChrome(SKIN | DELAYED_CHROME, getFolder("Chrome","chatzilla.jar"), "skin/modern/chatzilla/");
registerChrome(LOCALE | DELAYED_CHROME, getFolder("Chrome","chatzilla.jar"), "locale/en-US/chatzilla/");

err = getLastError();
if (err==SUCCESS)
    performInstall(); 
else
    cancelInstall(err);