RetroZilla/extensions/editor/cascades/build/install.js
2015-10-20 23:03:22 -04:00

23 lines
629 B
JavaScript

var gVersion = "0.2.1";
var err = initInstall("CaScadeS", "cascades", gVersion);
logComment("initInstall: " + err);
var fProgram = getFolder("Program");
logComment("fProgram: " + fProgram);
err = addDirectory("", gVersion, "bin", fProgram, "", true);
logComment("addDirectory: " + err);
registerChrome(CONTENT | DELAYED_CHROME, getFolder("Chrome","cascades.jar"), "content/cascades/");
registerChrome(LOCALE | DELAYED_CHROME, getFolder("Chrome","cascades.jar"), "locale/en-US/cascades/");
if (getLastError() == SUCCESS) {
err = performInstall();
logComment("performInstall: " + err);
} else {
cancelInstall(err);
}