|
||
|
|
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.xpiorregus.xpi:panels.rdf![]()
- From
deflenus.xpi orregus.xpi:bookmarks.html![]()
- From
deflenus.xpiorregus.xpi:mailaccount.rdf(this file will not be present unless you customized the Mail settings)![]()
- From
deflenus.xpiorregus.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.organd 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.xpiand 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/chrometo 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
.xpifiles again and replace the original.xpifiles in the original locations:![]()
- Replace the file
comm.jar/communicator/communicatorOverlay.xulwith Windows equivalent frombrowser.xpi.![]()
- Replace the jar files from Macintosh
browser.xpiwith the Windows equivalents frombrowser.xpiandskinclas.xpi.![]()
- Replace
en-US.jarfromlangenus.xpiandUS.jarfile fromregus.xpiwith the Windows equivalents.![]()
- Replace
all-ns.jsfrombrowser.xpiwith 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.rdfandnewsaccount.rdffrom the customized Windows installation to thedeflenus.xpi(viewer/defaults/isp) andregus.xpi(viewer/defaults/isp/us) directories. (Unlike the other files,mailaccount.rdfandnewsaccount.rdfare 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.organd 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/chromewith the corresponding files from the Windows installer.![]()
- Replace the Mac OS X file
all-ns.jsin/Defaults/Prefwith the corresponding file from the Windows installer.![]()
- Replace the Mac OS X files
mailaccount.rdfandnewsaccount.rdfin/Defaults/ispand/Defaults/isp/USwith the corresponding files from the Windows installer.![]()
- Replace the Mac OS X files
panels.rdfandbookmarks.htmlin/Defaults/Profileand/Defaults/Profile/USwith the corresponding files from the Windows installer.![]()
- Replace the Mac OS X file
communicatorOverlay.xulin/chrome/comm.jar/communicator/communicatorOverlay.xulwith 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