зеркало из https://github.com/mozilla/gecko-dev.git
Adding in files for install.
This commit is contained in:
Родитель
80312c23a8
Коммит
797efb79ac
|
@ -0,0 +1,2 @@
|
|||
scp linux/calendar_linux.xpi windows/calendar_windows.xpi
|
||||
mikep@www:/var/www/html/generated/files/
|
|
@ -0,0 +1,44 @@
|
|||
initInstall("Mozilla Calendar", "Mozilla/Calendar", "0.7");
|
||||
|
||||
calendarDir = getFolder("Chrome","calendar");
|
||||
|
||||
setPackageFolder(calendarDir);
|
||||
|
||||
addDirectory( "resources" );
|
||||
|
||||
addDirectory("", "components", getFolder( "Components" ), "" );
|
||||
|
||||
var err = getLastError();
|
||||
|
||||
if ( err == SUCCESS ) {
|
||||
|
||||
var calendarContent = getFolder(calendarDir, "content");
|
||||
var calendarSkin = getFolder(calendarDir, "skin");
|
||||
var calendarLocale = getFolder(calendarDir, "locale");
|
||||
|
||||
var returnval = registerChrome(CONTENT | DELAYED_CHROME, calendarContent );
|
||||
var returnval = registerChrome(SKIN | DELAYED_CHROME, calendarSkin, "modern/");
|
||||
var returnval = registerChrome(LOCALE | DELAYED_CHROME, calendarLocale, "en-US/");
|
||||
|
||||
err = performInstall();
|
||||
|
||||
if ( err == SUCCESS ) {
|
||||
refreshPlugins();
|
||||
alert("The Mozilla Calendar has been succesfully installed. \n"
|
||||
+"Please restart your browser to continue.");
|
||||
}
|
||||
else {
|
||||
alert("performInstall() failed. \n"
|
||||
+"_____________________________\nError code:" + err);
|
||||
cancelInstall(err);
|
||||
}
|
||||
}
|
||||
else {
|
||||
alert("Failed to create directory. \n"
|
||||
+"You probably don't have appropriate permissions \n"
|
||||
+"(write access to mozilla/chrome directory). \n"
|
||||
+"_____________________________\nError code:" + err);
|
||||
cancelInstall(err);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,51 @@
|
|||
initInstall("Mozilla Calendar", "Mozilla/Calendar", "0.7");
|
||||
|
||||
calendarDir = getFolder("Chrome","calendar");
|
||||
|
||||
setPackageFolder(calendarDir);
|
||||
|
||||
addDirectory( "resources" );
|
||||
|
||||
addDirectory("", "components", getFolder( "Components" ), "" );
|
||||
|
||||
addDirectory( "", "bin", getFolder( "Program" ), "" );
|
||||
|
||||
var err = getLastError();
|
||||
|
||||
if ( err == SUCCESS ) {
|
||||
|
||||
var calendarContent = getFolder(calendarDir, "content");
|
||||
var calendarSkin = getFolder(calendarDir, "skin");
|
||||
var calendarLocale = getFolder(calendarDir, "locale");
|
||||
|
||||
var returnval = registerChrome(CONTENT | DELAYED_CHROME, calendarContent );
|
||||
var returnval = registerChrome(SKIN | DELAYED_CHROME, calendarSkin, "modern/");
|
||||
var returnval = registerChrome(LOCALE | DELAYED_CHROME, calendarLocale, "en-US/");
|
||||
|
||||
err = performInstall();
|
||||
|
||||
if ( err == SUCCESS ) {
|
||||
refreshPlugins();
|
||||
alert("The Mozilla Calendar has been succesfully installed. \n"
|
||||
+"Please restart your browser to continue.");
|
||||
}
|
||||
else if( err == "999" )
|
||||
{
|
||||
alert("The Mozilla Calendar has been installed. \n You must exit quick launch and restart your browser to continue.");
|
||||
}
|
||||
|
||||
else {
|
||||
alert("performInstall() failed. \n"
|
||||
+"_____________________________\nError code:" + err);
|
||||
cancelInstall(err);
|
||||
}
|
||||
}
|
||||
else {
|
||||
alert("Failed to create directory. \n"
|
||||
+"You probably don't have appropriate permissions \n"
|
||||
+"(write access to mozilla/chrome directory). \n"
|
||||
+"_____________________________\nError code:" + err);
|
||||
cancelInstall(err);
|
||||
}
|
||||
|
||||
|
Загрузка…
Ссылка в новой задаче