![]() "Install xFly", // display name of installation InitInstall( // initialize the installation Package installation script var myFile = "xFly.jar" The Section 6.3.2 section, also later in this chapter, discusses other scripts that may need to be used in the installation process, such as trigger scripts.Įxample 6-1. A Example 6-1 shows a simple installation script and the kind of information it contains. When a XPI contains a Mozilla-based package such as the xFly sample discussed in Chapter 2 and the following chapters, the installation script also takes care of the package registration process, described in the Section 6.2.2 section later in this chapter. The package inside the XPI has a manifest that is used to register the new Mozilla-based software with the Mozilla chrome registry. The XPI file contains a script that downloads and installs the application. Figure 6-1 shows the major components of Mozilla's packaging system outlined in black.Īs you can see in Figure 6-1, the Cross-Platform Installer (XPI), pronounced zippy or X-P-I, is the archive format used to distribute Mozilla applications. In fact, Mozilla may have a few more moving parts than other packaging systems because it needs a way to package and install new software uniformly across several different platforms. Several different pieces comprise Mozilla's distribution technology. The last section provides tips for customizing how your application will look once it is installed. The next section specifies how to put your package into a cross-platform installation file that can be installed over the Web onto other machines. The second section provides details about how to get your application packaged and described so that Mozilla recognizes what it is. ![]() ![]() It starts with a quick overview of the basics of packaging and installing applications. This chapter is divided into four main sections. Making your application distributable, installable, and registrable allows others to use what you have created. Until your project is packaged for distribution, it can't be fully considered a finished application (unless it was designed to work only on the computer where it was created). This chapter discusses the technologies Mozilla provides for packaging and installing applications. Now that you've seen how to create an application with XUL, CSS, and JavaScript that can be used on your local computer, we will show you how to turn your program into something that can be installed by other users. The previous chapters covered the basic parts of building an application. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |