|
Chapter 13 Preparing Macintosh Installers and Program Files
To create a customized Macintosh installer, you first create a customized Windows installer, then transfer the customized Windows files to a standard Macintosh installation package (for Mac OS 9) or an installed version of Mozilla 1.4.1 (for Mac OS X). This chapter provides detailed instructions for this procedure.
Note: If you are preparing a Linux installer, you simply transfer the tar file generated by the CCK tool file to a Linux system for testing and distribution. For details, see Chapter 4 "Preparing Platform and Installer Information."
This chapter contains these sections:
Tools Required
Creating a Customized Macintosh Installer
To create a customized Mozilla browser installer for Macintosh systems, you need these Macintosh tools:
- Stuffit Deluxe 5.5 or higher, which is available from your local computer store or through
http://www.aladdinsys.com/store/
- ZipIt 1.3.8 or higher, shareware available through
http://www.zdnet.com/downloads/
Creating a Customized Macintosh Installer
The first five steps involved in creating a customized Macintosh installer are common to both Mac OS 9 and Mac OS X:
- Use the CCK tool to create a customized Mozilla 1.4.1 installer for Windows as described in previous chapters.
- Locate the Output directory:
- Use WinZip or a similar utility to extract these jar files:
- From
browser.xpi
:modern.jar, comm.jar
- From
langenus.xpi
:en-US.jar
- From
skinclas.xpi
:classic.jar
- From
regus.xpi
:US.jar
- Use Winzip or a similar utility to extract these additional files:
- From
browser.xpi
:all-ns.js
,comm.jar/communicator
:communicatorOverlay.xul
- From
deflenus.xpi
orregus.xpi
:panels.rdf
- From
deflenus.xp
i orregus.xpi
:bookmarks.html
- From
deflenus.xpi
orregus.xpi
:mailaccount.rdf
(this file will not be present unless you customized the Mail settings)- From
deflenus.xpi
orregus.xpi
:newsaccount.rdf
(this file will not be present unless you customized the News settings)
- Transfer all of the files listed in the preceding steps to a Macintosh running Mac OS 9 or Mac OS X.
At this point, the instructions differ depending which operating system you are running:
Create a Customized Mac OS 9 Installer
Creating a Mac OS X InstallerCreate a Customized Mac OS 9 Installer
After you complete steps 1 through 5 above under"Creating a Customized Macintosh Installer," follow these steps to create a Mac OS 9 installer:
- Go to
http://www.mozilla.org
and download the Full Installer for the Mac OS 9 version of Mozilla 1.4.1.
- Locate the Installer Modules folder inside the Mozilla Full Installer (auto-expanded) folder.
- Select
browser.xpi
,langenus.xpi
, andregus.xpi
and extract the complete contents of these files.
- If you are using the ZipIt utility, first set the preferences as shown here:
- Within the ZipIt window, open
viewer/chrome
to locate the jar files (forall-ns.js
, openviewer/defaults/pref
).
- Replace the extracted files specified below with those that you transferred from Windows, then zip up the
.xpi
files again and replace the original.xpi
files in the original locations:
- Replace the file
comm.jar/communicator/communicatorOverlay.xul
with Windows equivalent frombrowser.xpi
.- Replace the jar files from Macintosh
browser.xpi
with the Windows equivalents frombrowser.xpi
andskinclas.xpi
.- Replace
en-US.jar
fromlangenus.xpi
andUS.jar
file fromregus.xpi
with the Windows equivalents.- Replace
all-ns.js
frombrowser.xpi
with the equivalent Windows file.- Replace
panels.rdf
,bookmarks.html
, fromdeflenus.xpi
(viewer/defaults/isp
) andregus.xpi
(viewer/defaults/isp/us
) with the Windows equivalents.- Add
mailaccount.rdf
andnewsaccount.rdf
from the customized Windows installation to thedeflenus.xpi
(viewer/defaults/isp
) andregus.xpi
(viewer/defaults/isp/us
) directories. (Unlike the other files,mailaccount.rdf
andnewsaccount.rdf
are not part of the standard Macintosh installer.)
- To customize the Welcome Dialog or to add or subtract components, use a text editor to modify the file
Config.ini
.
- Use the Stuffit utility to create a self-extracting archive from the Mozilla Full Installer folder.
- Verify the customization by expanding the executable, then install the build and check for the appropriate customizations, as with Windows builds.
If you are creating a network installer, use the self-extracting archive. Users will download this file, extract its contents, and run the Mozilla Installer file to install Mozilla.
If you are creating a CD, use the Mozilla Full Installer directory for the contents of the Macintosh partition, not the self-extracting archive.
After you complete steps 1 through 5 above under "Creating a Customized Macintosh Installer," follow the steps in this section to create a Mac OS X installer.
Note: You can perform steps 1 through 7 on either Mac OS 9 or Mac OS X.
- Go to
http://www.mozilla.org
and download the binary file for the Mac OS X version of Mozilla 1.4.1.
- Unpack the binary with ZipIt or StuffIt.
- Replace the Mac OS X jar files (
modern.jar
,en-US.jar
,classic.jar
, andUS.jar
) in/chrome
with the corresponding files from the Windows installer.
- Replace the Mac OS X file
all-ns.js
in/Defaults/Pref
with the corresponding file from the Windows installer.
- Replace the Mac OS X files
mailaccount.rdf
andnewsaccount.rdf
in/Defaults/isp
and/Defaults/isp/US
with the corresponding files from the Windows installer.
- Replace the Mac OS X files
panels.rdf
andbookmarks.html
in/Defaults/Profile
and/Defaults/Profile/US
with the corresponding files from the Windows installer.
- Replace the Mac OS X file
communicatorOverlay.xul
in/chrome/comm.jar/communicator/communicatorOverlay.xul
with the corresponding file from the Windows installer.
- Verify your customization by launching Mozilla on Mac OS X and checking for the appropriate customizations, as with Windows builds.
Copyright © 2003 Netscape Communications Corp. All rights reserved.
Last Updated October 05, 2001