mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-07 12:15:51 +00:00
26 lines
916 B
Plaintext
26 lines
916 B
Plaintext
var err = initInstall("SRoaming v0.1", "Roaming", "$Version$");
|
|
logComment("initInstall: " + err);
|
|
|
|
var fProgram = getFolder("Program");
|
|
logComment("fProgram: " + fProgram);
|
|
|
|
err = addDirectory("", "$Version$", "bin", fProgram, "", true);
|
|
logComment("addDirectory: " + err);
|
|
|
|
addFile("SRoaming Chrome",
|
|
"bin/chrome/sroaming.jar", // jar source folder
|
|
getFolder("Chrome"), // target folder
|
|
""); // target subdir
|
|
|
|
var jarFolder = getFolder("Chrome", "sroaming.jar");
|
|
registerChrome(CONTENT | DELAYED_CHROME, jarFolder, "content/sroaming/");
|
|
registerChrome(LOCALE | DELAYED_CHROME, jarFolder, "locale/en-US/sroaming/");
|
|
registerChrome(SKIN | DELAYED_CHROME, jarFolder, "skin/modern/sroaming/");
|
|
registerChrome(SKIN | DELAYED_CHROME, jarFolder, "skin/classic/sroaming/");
|
|
|
|
err = getLastError();
|
|
if (err==SUCCESS)
|
|
performInstall();
|
|
else
|
|
cancelInstall(err);
|