aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/xpi/index.html
blob: 438dc798b489a5a9d7b7f183b9ecfc8fd4da6e7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
title: XPI
slug: XPI
tags:
  - Toolkit API
  - XPInstall
translation_of: Mozilla/XPI
---
<p> </p>
<p><b>Cross-Platform Installer Module (XPI)</b> (pronounced "zippy") is a ZIP file used to install packages, utilizing the <a href="cn/XPInstall">XPInstall</a> technology. XPI modules (so called "<a href="cn/Bundles">Bundles</a>") are employed to install a wide variety of software, including <a href="cn/Plugins">Plugins</a>, <a href="cn/Extensions">Extensions</a>, <a href="cn/Themes">Themes</a>, and <a class="external" href="http://www.mozilla.com/thunderbird/dictionaries.html">Thunderbird dictionaries</a>.</p>
<p><b>跨平台安装模块(XPI)</b> (发音为 "zippy") 是一个ZIP 文件,它利用 <a href="cn/XPInstall">XPInstall</a>技术来安装插件. XPI 模块 (也叫做 "<a href="cn/Bundles">Bundles</a>") 可用来安装各种软件,包括插件<a href="cn/Plugins">Plugins</a>, <a href="cn/Extensions">Extensions</a>, 主题<a href="cn/Themes">Themes</a>, 和 <a class="external" href="http://www.mozilla.com/thunderbird/dictionaries.html">Thunderbird dictionaries</a>.</p>
<p>A XPI contains installation instructions (install.js or <a href="cn/Install.rdf">install.rdf</a>) as well as the actual software to install, which is often itself packaged as a JAR file. When downloaded or dropped into an extension manager, XPInstall automatically interacts with the installation instructions contained in the XPI, and installs the contained software.</p>
<p>一个XPI含有安装指令(install.js 或 <a href="cn/Install.rdf">install.rdf</a>)和真正需要安装的软件。这个软件一般是用JAR格式打包的。当XPI包被下载或者拖动到插件管理器之后,XPInstall自动读取XPI里的安装指令,并安装所包含的软件。</p>
<p>When XPI files are served via HTTP, the <code>application/x-xpinstall</code> MIME type should be matched with the <code>xpi</code> file extension.</p>
<p>当用HTTP来提供XPI文件时,<code>application/x-xpinstall</code>的 MIME类型必修要和<code>xpi</code>文件的插件匹配。</p>
<h2 id=".E5.8F.82.E8.A7.81" name=".E5.8F.82.E8.A7.81">参见</h2>
<ul>
 <li><a href="cn/Bundles">Bundles</a></li>
 <li><a href="cn/XPInstall">XPInstall</a></li>
 <li><a href="cn/Creating_XPI_Installer_Modules">Creating XPI Installer Modules</a></li>
</ul>
<div class="noinclude">
  </div>
<p>{{ languages( { "fr": "fr/XPI", "ja": "ja/XPI", "pl": "pl/XPI" } ) }}</p>