canmove, Confirmed users
1,448
edits
| Line 213: | Line 213: | ||
'''Example:''' | '''Example:''' | ||
<pre><p id="about-url">chrome://packagingspec/content/about.xul</p></pre> | <pre><p id="about-url">chrome://packagingspec/content/about.xul</p></pre> | ||
=== icon-url === | |||
Note: the default location for add-on icons is in the package root, with the name ''icon.png''. This property is only meant as an override in case developers want the icon to change depending on the skin, or they don't want to use the default location. | |||
A chrome:// URL to a 32x32 icon to display in the Add-ons Manager. | |||
'''Example:''' | |||
<pre><p id="icon-url">chrome://packagingspec/skin/icon.png</p></pre> | |||
=== target-platforms === | |||
A string specifying a platform that the addon supports. It contains either the value of OS_TARGET alone or combined with TARGET_XPCOM_ABI, separated by an underscore (_). If any value matches the application's build parameters, it will be installed; if not, the user will get an appropriate error message. | |||
There's more information in the [https://developer.mozilla.org/en/Install_Manifests#targetPlatform previous manifest format] documentation. | |||
'''Example:''' | |||
<pre><ol id="target-platforms"> | |||
<li>WINNT_x86-msv</li> | |||
<li>Linux</li> | |||
<li>Darwin_ppc-gcc3</li> | |||
<li>SunOS_sparc-sunc</li> | |||
</ol></pre> | |||
=== requires === | |||
Very similar to ''target-applications'', except that the id is not an application id but an add-on id. If the add-on specified by the ''addon-id'' is not installed or has an incompatible version, the extension manager will disable the installed add-on and show the message "Requires additional items". Multiple dependencies can be declared. | |||
'''Example:''' | |||
<pre><ol id="requires"> | |||
<li> | |||
<!-- Lightning --> | |||
<p class="addon-id">{e2fda1a4-762b-4020-b5ad-a41df1933103}</p> | |||
<p class="min-version">0.9</p> | |||
<p class="max-version">1.1.*</p> | |||
</li> | |||
</ol></pre> | |||