Enhanced Mac installer and fixed problems

This commit is contained in:
mostafah%oeone.com 2002-09-06 17:40:28 +00:00
Родитель 8cd6afaae2
Коммит ae718f05ca
2 изменённых файлов: 16 добавлений и 15 удалений

Просмотреть файл

@ -9,7 +9,12 @@ mkdir -p viewer/components
mkdir -p viewer/chrome
ln -sf ../../../../dist/bin/components/libxpical.$suffix viewer/components/libxpical.$suffix
ln -sf ../../../../dist/bin/components/calendar.xpt viewer/components/calendar.xpt
ln -sf ../../../resources/content viewer/chrome/
ln -sf ../../../resources/locale viewer/chrome/
ln -sf ../../../resources/skin viewer/chrome/
find install.js viewer/components viewer/chrome/content/ viewer/chrome/locale/ viewer/chrome/skin/ \( -name CVS \) -prune -o -print | xargs zip calendar_mac.xpi
ln -sf ../../../../dist/bin/chrome/calendar.jar viewer/chrome/calendar.jar
#ln -sf ../../../../other-licenses/libical/src/libical/.libs/libical.$suffix viewer/libical.$suffix
#ln -sf ../../../../other-licenses/libicalss/src/libical/.libs/libicalss.$suffix viewer/libicalss.$suffix
#ln -sf ../../../../other-licenses/libical/src/libical/.libs/libicalvcal.$suffix viewer/libicalvcal.$suffix
#ln -sf ../../../resources/content viewer/chrome/
#ln -sf ../../../resources/locale viewer/chrome/
#ln -sf ../../../resources/skin viewer/chrome/
#find install.js viewer/components viewer/chrome/content/ viewer/chrome/locale/ viewer/chrome/skin/ \( -name CVS \) -prune -o -print | xargs zip calendar_mac.xpi
find install.js viewer/components viewer/chrome \( -name CVS \) -prune -o -print | xargs zip calendar_mac.xpi

Просмотреть файл

@ -1,4 +1,4 @@
var err = initInstall("Mozilla Calendar", "Mozilla/Calendar", "0.1");
var err = initInstall("Mozilla Calendar", "/Mozilla/Calendar", "0.1");
logComment("initInstall: " + err);
var fProgram = getFolder("Program");
@ -21,21 +21,17 @@
"", //version
"viewer/chrome", // jar source folder
ChromeDirectory, // target folder
"calendar", // target subdir
"", // target subdir
true ); // force flag
logComment("addDirectory() returned: " + err);
calendarDir = getFolder("Chrome","calendar");
calendarDir = getFolder("Chrome","calendar.jar");
var calendarContent = getFolder(calendarDir, "content");
var calendarSkin = getFolder(calendarDir, "skin");
var calendarLocale = getFolder(calendarDir, "locale");
err = registerChrome(CONTENT | DELAYED_CHROME, calendarContent );
err = registerChrome(SKIN | DELAYED_CHROME, calendarSkin, "modern/");
err = registerChrome(SKIN | DELAYED_CHROME, calendarSkin, "classic/");
err = registerChrome(LOCALE | DELAYED_CHROME, calendarLocale, "en-US/");
err = registerChrome(PACKAGE | DELAYED_CHROME, calendarDir, "content/calendar/" );
err = registerChrome(SKIN | DELAYED_CHROME, calendarDir, "skin/modern/calendar/");
err = registerChrome(SKIN | DELAYED_CHROME, calendarDir, "skin/classic/calendar/");
err = registerChrome(LOCALE | DELAYED_CHROME, calendarDir, "locale/en-US/calendar/");
logComment("registerChrome() returned: " + err);