Initial checkin of packages for firefox linux installer. Not turned on yet.

This commit is contained in:
bryner%brianryner.com 2004-04-07 21:10:32 +00:00
Родитель 1c7201a285
Коммит 345510fa12
12 изменённых файлов: 2011 добавлений и 0 удалений

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

@ -0,0 +1 @@
Makefile

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

@ -0,0 +1,64 @@
# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Original Code is the Mozilla Browser code.
#
# The Initial Developer of the Original Code is
# IBM Corporation.
# Portions created by the Initial Developer are Copyright (C) 2004
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
# Brian Ryner <bryner@brianryner.com>
#
# Alternatively, the contents of this file may be used under the terms of
# either the GNU General Public License Version 2 or later (the "GPL"), or
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
# in which case the provisions of the GPL or the LGPL are applicable instead
# of those above. If you wish to allow use of your version of this file only
# under the terms of either the GPL or the LGPL, and not to allow others to
# use your version of this file under the terms of the MPL, indicate your
# decision by deleting the provisions above and replace them with the notice
# and other provisions required by the GPL or the LGPL. If you do not delete
# the provisions above, a recipient may use your version of this file under
# the terms of any one of the MPL, the GPL or the LGPL.
#
# ***** END LICENSE BLOCK *****
DEPTH = ../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
CONFIG_DIR = $(shell pwd)
ABS_topsrcdir = $(shell cd $(topsrcdir) && pwd)
ABS_depth = $(shell cd $(DEPTH) && pwd)
installer: installer.cfg
ifneq ($(ABS_topsrcdir),$(ABS_depth))
ln -sf $(srcdir)/*.jst $(srcdir)/*.it $(srcdir)/packages* .
endif
$(PERL) $(topsrcdir)/toolkit/mozapps/installer/build_static.pl -config $(CONFIG_DIR) -objdir $(ABS_depth) -srcdir $(ABS_topsrcdir)
ifeq ($(OS_ARCH)_$(TARGET_CPU)_$(MOZ_WIDGET_TOOLKIT)_$(MOZ_ENABLE_XFT), Linux_i686_gtk2_1)
INSTALLER_NAME = firefox-i686-linux-gtk2+xft-installer
else
INSTALLER_NAME = firefox-$(TARGET_CPU)-$(TARGET_VENDOR)-$(TARGET_OS)-installer
endif
installer.cfg: installer.cfg.in
sed -e "s/@INSTALLER_NAME@/$(INSTALLER_NAME)/" $^ > $@
include $(topsrcdir)/config/rules.mk

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

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

@ -0,0 +1,40 @@
var err = initInstall("Developer Tools", "Developer Tools", "$Version$");
logComment("initInstall: " + err);
// JavaScript Debugger
// addFile("Venkman Service",
// "bin/components/venkman-service.js",
// getFolder("Components"),
// "");
// addFile("Venkman Chrome",
// "bin/chrome/venkman.jar", // jar source folder
// getFolder("Chrome"), // target folder
// ""); // target subdir
// registerChrome(PACKAGE | DELAYED_CHROME, getFolder("Chrome","venkman.jar"), "content/venkman/");
// registerChrome(SKIN | DELAYED_CHROME, getFolder("Chrome","venkman.jar"), "skin/modern/venkman/");
// registerChrome(LOCALE | DELAYED_CHROME, getFolder("Chrome","venkman.jar"), "locale/en-US/venkman/");
// DOM Inspector
var fProgram = getFolder("Program");
logComment("fProgram: " + fProgram);
err = addDirectory("", "$Version$", "bin", fProgram, "", true);
logComment("addDirectory: " + err);
addFile("Inspector Command Line Handler",
"bin/components/inspector-cmdline.js",
getFolder("Components"),
"");
var jarFolder = getFolder("Chrome", "inspector.jar");
registerChrome(PACKAGE | DELAYED_CHROME, jarFolder, "content/inspector/");
registerChrome(SKIN | DELAYED_CHROME, jarFolder, "skin/classic/inspector/");
registerChrome(LOCALE | DELAYED_CHROME, jarFolder, "locale/en-US/inspector/");
err = getLastError();
if (err==SUCCESS)
performInstall();
else
cancelInstall(err);

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

@ -0,0 +1,94 @@
function upgradeCleanup()
{
// For now, since we're new, we have no such files.
}
var srDest = $SpaceRequired$;
var err = initInstall("$ProductName$", "Browser", "$Version$");
logComment("initInstall: " + err);
var communicatorFolder = getFolder("Program");
logComment("communicatorFolder: " + communicatorFolder);
if (verifyDiskSpace(communicatorFolder, srDest))
{
// Call upgradeCleanup() before addDirectory() in case we accidentaly
// delete files that we happen to be also installing. This way, if we do,
// it will just get reinstalled. This is for safety measure.
upgradeCleanup();
err = addDirectory("Program",
"$Version$",
"bin", // jar source folder
communicatorFolder, // target folder
"", // target subdir
true ); // force flag
logComment("addDirectory() returned: " + err);
// create the plugins folder next to mozilla
var pluginsFolder = getFolder("Plugins");
var ignoreErr = dirCreate(pluginsFolder);
logComment("dirCreate() returned: " + ignoreErr);
// register chrome
registerChrome(CONTENT | DELAYED_CHROME, getFolder("Chrome", "browser.jar"), "content/browser/");
registerChrome(SKIN | DELAYED_CHROME, getFolder("Chrome", "classic.jar"), "skin/classic/browser/");
registerChrome(CONTENT | DELAYED_CHROME, getFolder("Chrome", "toolkit.jar"), "content/passwordmgr/");
registerChrome(CONTENT | DELAYED_CHROME, getFolder("Chrome", "toolkit.jar"), "content/mozapps/");
registerChrome(SKIN | DELAYED_CHROME, getFolder("Chrome", "classic.jar"), "skin/classic/mozapps/");
registerChrome(CONTENT | DELAYED_CHROME, getFolder("Chrome","comm.jar"),"content/autoconfig/");
registerChrome(CONTENT | DELAYED_CHROME, getFolder("Chrome","comm.jar"),"content/necko/");
registerChrome(CONTENT | DELAYED_CHROME, getFolder("Chrome","comm.jar"),"content/cookie/");
registerChrome(CONTENT | DELAYED_CHROME, getFolder("Chrome","comm.jar"),"content/wallet/");
registerChrome(CONTENT | DELAYED_CHROME, getFolder("Chrome","comm.jar"),"content/xbl-marquee/");
registerChrome(CONTENT | DELAYED_CHROME, getFolder("Chrome","toolkit.jar"),"content/global/");
registerChrome(CONTENT | DELAYED_CHROME, getFolder("Chrome","toolkit.jar"),"content/global-region/");
registerChrome(CONTENT | DELAYED_CHROME, getFolder("Chrome","toolkit.jar"),"content/global-platform/");
registerChrome(SKIN | DELAYED_CHROME, getFolder("Chrome","classic.jar"),"skin/classic/global/");
// XXXben Stuff that will become obsolete
registerChrome(CONTENT | DELAYED_CHROME, getFolder("Chrome","comm.jar"),"content/navigator/");
registerChrome(CONTENT | DELAYED_CHROME, getFolder("Chrome","comm.jar"),"content/navigator-region/");
registerChrome(CONTENT | DELAYED_CHROME, getFolder("Chrome","comm.jar"),"content/navigator-platform/");
registerChrome(SKIN | DELAYED_CHROME, getFolder("Chrome","classic.jar"),"skin/classic/navigator/");
registerChrome(CONTENT | DELAYED_CHROME, getFolder("Chrome","comm.jar"),"content/communicator/");
registerChrome(CONTENT | DELAYED_CHROME, getFolder("Chrome","comm.jar"),"content/communicator-region/");
registerChrome(CONTENT | DELAYED_CHROME, getFolder("Chrome","comm.jar"),"content/communicator-platform/");
registerChrome(SKIN | DELAYED_CHROME, getFolder("Chrome","classic.jar"),"skin/classic/communicator/");
// Register the psm chrome files, if they exist.
var pki = getFolder("Chrome", "pippki.jar");
if (File.exists(pki))
registerChrome(CONTENT | DELAYED_CHROME, pki, "content/pippki/");
var nss = getFolder("Chrome", "pipnss.jar");
if (File.exists(nss))
registerChrome(CONTENT | DELAYED_CHROME, nss, "content/pipnss/");
if (err==SUCCESS)
{
err = performInstall();
logComment("performInstall() returned: " + err);
if (! ('buildID' in Install))
{
logComment("Running Pre-Mozilla 0.9.1");
initInstall("Post-install Cleanup Utility", "Browser/xpicleanup", "$Version$");
cleanupUtility = getFolder(communicatorFolder, "xpicleanup");
err = File.execute(cleanupUtility);
logComment("execute() returned: " + err);
err = performInstall();
}
}
else
{
cancelInstall(err);
logComment("cancelInstall() due to error: " + err);
}
}
else
cancelInstall(INSUFFICIENT_DISK_SPACE);

Разница между файлами не показана из-за своего большого размера Загрузить разницу

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

@ -0,0 +1,38 @@
var srDest = $SpaceRequired$;
var err;
var fProgram;
// ----LOCALIZATION NOTE: translate only these ------
var prettyName = "US Regional Pack";
var regName = "defaults/mozilla/US";
// --- END CHANGABLE STUFF ---
err = initInstall(prettyName, regName, "$Version$");
logComment("initInstall: " + err);
fProgram = getFolder("Program");
logComment("fProgram: " + fProgram);
if (verifyDiskSpace(fProgram, srDest))
{
err = addDirectory("",
"$Version$",
"bin",
fProgram,
"",
true);
logComment("addDirectory() returned: " + err);
if (err == SUCCESS)
{
err = performInstall();
logComment("performInstall() returned: " + err);
}
else
{
cancelInstall(err);
logComment("cancelInstall due to error: " + err);
}
}
else
cancelInstall(INSUFFICIENT_DISK_SPACE);

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

@ -0,0 +1,12 @@
VersionLanguage = en
NameCompany = mozilla.org
NameProduct = Mozilla Firefox
NameProductInternal = Mozilla Firefox
VersionProduct = 0.8
FileInstallerEXE = @INSTALLER_NAME@
FileMainEXE = firefox
FileUninstall = UninstallFirefox
FileUninstallZIP = UninstallFirefox.zip
FileInstallerNETRoot = FirefoxNetSetup
ComponentList = xpcom,browser,deflenus,langenus,regus,abe,adt
LicenseFile = browser/LICENSE

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

@ -0,0 +1,87 @@
var srDest = $SpaceRequired$;
var err;
var fProgram;
var platformNode;
platformNode = getPlatform();
logComment("initInstall: platformNode=" + platformNode);
// end
// end - OS type detection
// --- LOCALIZATION NOTE: translate only these ---
var prettyName = "English (US) Language Pack";
var langcode = "en";
var chromeNode = langcode + "-US";
// --- END LOCALIZABLE RESOURCES ---
var regName = "locales/mozilla/" + chromeNode;
var chromeName = chromeNode + ".jar";
var platformName = langcode + "-" + platformNode + ".jar";
var localeName = "locale/" + chromeNode + "/";
err = initInstall(prettyName, regName, "$Version$");
logComment("initInstall: " + err);
fProgram = getFolder("Program");
logComment("fProgram: " + fProgram);
if (verifyDiskSpace(fProgram, srDest))
{
var chromeType = LOCALE;
err = addDirectory("",
"bin",
fProgram,
"");
logComment("addDirectory() returned: " + err);
if (err != SUCCESS)
{
logComment("addDirectory() to " + fProgram + "failed!");
// couldn't install globally, try installing to the profile
resetError();
chromeType |= PROFILE_CHROME;
fProgram = getFolder("Profile");
logComment("try installing to the user profile:" + fProgram);
err = addDirectory("","bin",fProgram,"");
}
setPackageFolder(fProgram);
// check return value
if (err == SUCCESS)
{
// register chrome
var cf = getFolder(fProgram, "chrome/"+chromeName);
var pf = getFolder(fProgram, "chrome/"+platformName);
registerChrome(chromeType, cf, localeName + "global/");
registerChrome(chromeType, pf, localeName + "global-platform/");
registerChrome(chromeType, cf, localeName + "browser/");
registerChrome(chromeType, cf, localeName + "browser-region/");
registerChrome(chromeType, cf, localeName + "passwordmgr/");
registerChrome(chromeType, cf, localeName + "mozapps/");
registerChrome(chromeType, cf, localeName + "necko/");
registerChrome(chromeType, cf, localeName + "autoconfig/");
registerChrome(chromeType, cf, localeName + "cookie/");
registerChrome(chromeType, cf, localeName + "wallet/");
registerChrome(chromeType, cf, localeName + "pipnss/");
registerChrome(chromeType, cf, localeName + "pippki/");
// XXXben Soon to be obsolete.
registerChrome(chromeType, cf, localeName + "communicator/");
registerChrome(chromeType, pf, localeName + "communicator-platform/");
registerChrome(chromeType, cf, localeName + "navigator/");
registerChrome(chromeType, pf, localeName + "navigator-platform/");
err = performInstall();
logComment("performInstall() returned: " + err);
}
else
{
cancelInstall(err);
logComment("cancelInstall due to error: " + err);
}
}
else
cancelInstall(INSUFFICIENT_DISK_SPACE);

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

@ -0,0 +1,270 @@
; Package file for Linux static Firefox build.
;
; File format:
;
; [] designates a toplevel component. Example: [xpcom]
; - in front of a file specifies it to be removed from the destination
; * wildcard support to recursively copy the entire directory
; ; file comment
;
bin/.autoreg
[langenus]
; en-US
bin/chrome/en-US.jar
bin/chrome/en-unix.jar
[regus]
; US
; If you add a new directory you must explicitly call addDirectory in regus.jst
bin/chrome/US.jar
bin/defaults/profile/US/*
bin/searchplugins/*
[deflenus]
; Default files for US
bin/defaults/profile/bookmarks.html
bin/defaults/profile/localstore.rdf
bin/defaults/profile/search.rdf
bin/defaults/profile/mimeTypes.rdf
[xpcom]
bin/libmozjs.so
bin/libplc4.so
bin/libplds4.so
bin/libxpcom.so
bin/libxpistub.so
bin/libnspr4.so
bin/components/libxpinstall.so
bin/components/libjar50.so
bin/libxpcom_compat.so
[browser]
; [Base Browser Files]
bin/firefox-bin
bin/firefox
bin/run-mozilla.sh
bin/plugins/libnullplugin.so
bin/res/cmessage.txt
bin/xpicleanup
; [Components]
bin/components/accessibility.xpt
bin/components/accessibility-atk.xpt
bin/components/appshell.xpt
bin/components/autocomplete.xpt
bin/components/autoconfig.xpt
bin/components/bookmarks.xpt
bin/components/caps.xpt
bin/components/chardet.xpt
bin/components/commandhandler.xpt
bin/components/composer.xpt
bin/components/content_base.xpt
bin/components/content_htmldoc.xpt
bin/components/content_html.xpt
bin/components/content_xmldoc.xpt
bin/components/content_xslt.xpt
bin/components/cookie.xpt
bin/components/directory.xpt
bin/components/docshell.xpt
bin/components/dom.xpt
bin/components/dom_base.xpt
bin/components/dom_core.xpt
bin/components/dom_css.xpt
bin/components/dom_events.xpt
bin/components/dom_html.xpt
bin/components/dom_range.xpt
bin/components/dom_stylesheets.xpt
bin/components/dom_traversal.xpt
bin/components/dom_views.xpt
bin/components/dom_xbl.xpt
bin/components/dom_xpath.xpt
bin/components/dom_xul.xpt
bin/components/downloads.xpt
bin/components/editor.xpt
bin/components/embed_base.xpt
bin/components/exthandler.xpt
bin/components/filepicker.xpt
bin/components/find.xpt
bin/components/gfx.xpt
bin/components/helperAppDlg.xpt
bin/components/history.xpt
bin/components/htmlparser.xpt
bin/components/imglib2.xpt
; bin/components/imgicon.xpt
bin/components/intl.xpt
bin/components/jar.xpt
bin/components/jsconsole.xpt
bin/components/jsdservice.xpt
bin/components/jsurl.xpt
bin/components/layout_base.xpt
bin/components/layout_xul_tree.xpt
bin/components/layout_xul.xpt
bin/components/locale.xpt
bin/components/lwbrk.xpt
bin/components/mimetype.xpt
bin/components/mozbrwsr.xpt
bin/components/mozfind.xpt
bin/components/necko_about.xpt
bin/components/necko_cache.xpt
bin/components/necko_cookie.xpt
bin/components/necko_data.xpt
bin/components/necko_dns.xpt
bin/components/necko_file.xpt
bin/components/necko_ftp.xpt
bin/components/necko_http.xpt
bin/components/necko_jar.xpt
bin/components/necko_res.xpt
bin/components/necko_socket.xpt
bin/components/necko_strconv.xpt
bin/components/necko_viewsource.xpt
bin/components/necko.xpt
bin/components/oji.xpt
bin/components/passwordmgr.xpt
bin/components/plugin.xpt
bin/components/prefetch.xpt
bin/components/prefmigr.xpt
bin/components/pref.xpt
bin/components/profile.xpt
bin/components/progressDlg.xpt
bin/components/proxyObjInst.xpt
bin/components/rdf.xpt
bin/components/related.xpt
bin/components/satchel.xpt
bin/components/search.xpt
bin/components/shistory.xpt
bin/components/sidebar.xpt
bin/components/txtsvc.xpt
bin/components/txmgr.xpt
bin/components/typeaheadfind.xpt
bin/components/ucnative.xpt
bin/components/uconv.xpt
bin/components/unicharutil.xpt
bin/components/uriloader.xpt
bin/components/webBrowser_core.xpt
bin/components/webbrowserpersist.xpt
bin/components/webshell_idls.xpt
bin/components/websrvcs.xpt
bin/components/widget.xpt
bin/components/windowds.xpt
bin/components/windowwatcher.xpt
bin/components/xmlextras.xpt
bin/components/xml-rpc.xpt
bin/components/xpcom_base.xpt
bin/components/xpcom_components.xpt
bin/components/xpcom_ds.xpt
bin/components/xpcom_io.xpt
bin/components/xpcom_obsolete.xpt
bin/components/xpcom_threads.xpt
bin/components/xpcom_xpti.xpt
bin/components/xpconnect.xpt
bin/components/xpinstall.xpt
bin/components/xremoteservice.xpt
bin/components/xuldoc.xpt
bin/components/xultmpl.xpt
; JavaScript components
bin/components/jsconsole-clhandler.js
bin/components/nsCloseAllWindows.js
bin/components/nsDictionary.js
bin/components/nsFilePicker.js
bin/components/nsHelperAppDlg.js
bin/components/nsInterfaceInfoToIDL.js
; bin/components/nsProgressDialog.js not needed for firefox
bin/components/nsProxyAutoConfig.js
; bin/components/nsResetPref.js not needed for firefox
bin/components/nsSidebar.js
; bin/components/nsUpdateNotifier.js not needed for firefox
bin/components/nsXmlRpcClient.js
; [Browser Chrome Files]
bin/chrome/browser.jar
bin/chrome/classic.jar
bin/chrome/comm.jar
bin/chrome/toolkit.jar
; [Default Preferences]
; All the pref files must be part of base to prevent migration bugs
bin/defaults/pref/firefox.js
bin/greprefs/all.js
bin/greprefs/security-prefs.js
bin/greprefs/xpinstall.js
bin/defaults/autoconfig/platform.js
bin/defaults/autoconfig/prefcalls.js
; [Layout Engine Resources]
; Style Sheets, Graphics and other Resources used by the layout engine.
bin/res/ua.css
bin/res/html.css
bin/res/quirk.css
bin/res/forms.css
bin/res/platform-forms.css
bin/res/EditorOverride.css
bin/res/table-add-column-after-active.gif
bin/res/table-add-column-after-hover.gif
bin/res/table-add-column-after.gif
bin/res/table-add-column-before-active.gif
bin/res/table-add-column-before-hover.gif
bin/res/table-add-column-before.gif
bin/res/table-add-row-after-active.gif
bin/res/table-add-row-after-hover.gif
bin/res/table-add-row-after.gif
bin/res/table-add-row-before-active.gif
bin/res/table-add-row-before-hover.gif
bin/res/table-add-row-before.gif
bin/res/table-remove-column-active.gif
bin/res/table-remove-column-hover.gif
bin/res/table-remove-column.gif
bin/res/table-remove-row-active.gif
bin/res/table-remove-row-hover.gif
bin/res/table-remove-row.gif
bin/res/arrowd.gif
bin/res/grabber.gif
bin/res/viewsource.css
bin/res/mathml.css
bin/res/arrow.gif
bin/res/loading-image.gif
bin/res/broken-image.gif
bin/res/fonts/*
bin/res/dtd/*
bin/res/html/*
bin/res/unixcharset.properties
bin/res/charsetalias.properties
bin/res/charsetData.properties
bin/res/langGroups.properties
bin/res/language.properties
bin/res/entityTables/*
bin/res/builtin/htmlBindings.xml
bin/res/builtin/platformHTMLBindings.xml
; [Personal Security Manager]
;
bin/libnssckbi.so
bin/components/pipboot.xpt
bin/components/pipnss.xpt
bin/components/pippki.xpt
bin/libnss3.so
bin/libsmime3.so
bin/libsoftokn3.chk
bin/libsoftokn3.so
bin/libssl3.so
bin/chrome/pipnss.jar
bin/chrome/pippki.jar
; [Additional Developer Tools]
[adt]
; [Document Inspector]
bin/components/inspector-cmdline.js
bin/components/libinspector.so
bin/components/inspector.xpt
bin/chrome/inspector.jar
bin/defaults/pref/inspector.js
bin/res/inspector/viewer-registry.rdf
bin/res/inspector/search-registry.rdf
; [Venkman JavaScript Debugger]
; bin/components/venkman-service.js
; bin/chrome/venkman.jar
; [Additional Browsing Enhancements]
[abe]

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

@ -0,0 +1,62 @@
var srDest = $SpaceRequired$;
var err;
var fProgram;
// --- LOCALIZATION NOTE: translate only these ---
var prettyName = "US Regional Pack";
var chromeNode = "US";
// --- END LOCALIZABLE RESOURCES ---
var regName = "locales/mozilla/" + chromeNode;
var chromeName = chromeNode + ".jar";
var localeName = "locale/" + chromeNode + "/";
err = initInstall(prettyName, regName, "$Version$");
logComment("initInstall: " + err);
fProgram = getFolder("Program");
logComment("fProgram: " + fProgram);
if (verifyDiskSpace(fProgram, srDest))
{
var chromeType = LOCALE;
err = addDirectory("",
"bin",
fProgram,
"");
logComment("addDirectory() returned: " + err);
if (err != SUCCESS)
{
logComment("addDirectory() to " + fProgram + "failed!");
// couldn't install globally, try installing to the profile
resetError();
chromeType |= PROFILE_CHROME;
fProgram = getFolder("Profile");
logComment("try installing to the profile: " + fProgram);
err = addDirectory("","bin/chrome",fProgram,"chrome");
}
setPackageFolder(fProgram);
if (err == SUCCESS)
{
// register chrome
var cf = getFolder(fProgram, "chrome/"+ chromeName);
registerChrome(chromeType, cf, localeName + "global-region/");
registerChrome(chromeType, cf, localeName + "browser-region/");
// XXXben Stuff that will become obsolete
registerChrome(chromeType, cf, localeName + "communicator-region/");
registerChrome(chromeType, cf, localeName + "navigator-region/");
err = performInstall();
logComment("performInstall() returned: " + err);
}
else
{
cancelInstall(err);
logComment("cancelInstall due to error: " + err);
}
}
else
cancelInstall(INSUFFICIENT_DISK_SPACE);

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

@ -0,0 +1,48 @@
function upgradeCleanup()
{
// Obsolete files from Netscape 6.0 and Netscape 6.01 that
// need to be cleaned up.
deleteThisFile("Program", "component.reg");
deleteThisFile("Program", "libjsdom.so");
deleteThisFile("Program", "libz.so");
deleteThisFile("Components", "compreg.dat");
deleteThisFile("Components", "xpti.dat");
deleteThisFile("Components", "xptitemp.dat");
}
var srDest = $SpaceRequired$;
var err = initInstall("Mozilla XPCOM", "XPCOM", "$Version$");
logComment("initInstall: " + err);
var communicatorFolder = getFolder("Program");
logComment("communicatorFolder: " + communicatorFolder);
if (verifyDiskSpace(communicatorFolder, srDest))
{
// Call upgradeCleanup() before addDirectory() in case we accidentaly
// delete files that we happen to be also installing. This way, if we do,
// it will just get reinstalled. This is for safety measure.
upgradeCleanup();
err = addDirectory("Program",
"$Version$",
"bin", // jar source folder
communicatorFolder, // target folder
"", // target subdir
true ); // force flag
logComment("addDirectory() returned: " + err);
if (err==SUCCESS)
{
err = performInstall();
logComment("performInstall() returned: " + err);
}
else
{
cancelInstall(err);
logComment("cancelInstall() returned: " + err);
}
}
else
cancelInstall(INSUFFICIENT_DISK_SPACE);