Plataforma-detalhes específicos da instalação de aplicativo

  • Revision slug: Apps/Plataforma-detalhes-específicos
  • Revision title: Plataforma-detalhes específicos da instalação de aplicativo
  • Revision id: 292877
  • Criado:
  • Criador: battisti
  • É a revisão atual? Não
  • Comentar

Conteúdo da revisão

You don't have to do anything special to install apps on different platforms. All the information you need to provide, such as the app name,  is contained in the app manifest. Here are some platform-specific details about how apps are installed on each platform. These details assume that Firefox has been installed on the platform.

On Boot to Gecko

Gaia (the Boot to Gecko user interface) includes a marketplace link on the second homepage, and apps can be installed in this way. Default apps included with Gaia are stored in the Gecko profile on the device as an offline cache of the Web app at /data/local/OfflineCache/*.

If you want to browse this folder to look at the contents, you can do so using the adb tool:

$ adb shell ls -la /data/local/OfflineCache/

All other installed apps are stored in the DOM Registry component (you can find this file at /data/local/webapps). If they use appcache, the appcache will be populated at install time after bug 702369 lands.

On Windows

The following are created upon installation. All of these will be removed by the uninstaller (find it in the Windows Control Panel).

  • Shortcut on the current user's desktop.
  • Shortcut in Start menu > Programs for the current user.
  • Registry entries to make the app appear in the Control Panel's "uninstall a program" menu.
  • Folders for the app under %APPDATA%\scheme;domain[;port]
    • Where scheme is http or https, domain is the app's domain name, and port is a port number, used only if the default port number is not used.
    • Example folder name: C:\Users\myuser\AppData\Roaming\https;mozqa.com;115
    • The folders contain a stub executable (exe), configuration files, and an uninstaller.

When launched, each app has its own window with the following attributes:

  • A native menu bar (currently with File and Edit menus).
  • The title of the window is the name of the app.
  • System menu icon (in the upper left corner of the window) is specified by the app manifest.
  • The displayed Taskbar icon is also specified by the app manifest.

Each app runs in a separate process, and the app appears under its own name on the Applications tab of Task Manager.  The executable name of the app (for example, "Mozilla QA WebRT Tester.exe") is the app name with illegal Windows filename characters removed.

Each app has its own profile with separate preferences, cookies, history, certificate authority settings, proxy settings, etc. Upon first run, profile data is created in the directory mentioned above, and in an equivalent directory in %LOCALAPPDATA%. Profile data is not removed by the uninstaller.

On Mac OS X

Apps are installed into /Applications.

Opening the app launches the app in its own window minus the browser window frame. Apps execute using the Firefox binary. Each app runs in a separate process. Each app has its own profile, with separate preferences, cookies, certificate authority settings, proxy settings, etc.

On a platform with no native Web runtime

If the computer does not have the appropriate version of Firefox installed, some capabilities can be provided by the HTML5 Web runtime, also known as the HTML5 shim. This is a JavaScript file that can be imported by the app. See Apps JavaScript API for more information.

{{ languages( {"fr": "fr/Applications/Détails_spécifiques_à_la_plateforme"} ) }}

Fonte da revisão

<p>You don't have to do anything special to install apps on different platforms. All the information you need to provide, such as the app name,&nbsp; is contained in the <a href="/en/Apps/Manifest" title="Application manifest">app manifest</a>. Here are some platform-specific details about how apps are installed on each platform. These details assume that Firefox has been installed on the platform.</p>
<h2 id="On_Boot_to_Gecko">On Boot to Gecko</h2>
<p>Gaia (the <a href="/en/Mozilla/Boot_to_Gecko" title="https://developer.mozilla.org/en/Mozilla/Boot_to_Gecko">Boot to Gecko</a> user interface) includes a marketplace link on the second homepage, and apps can be installed in this way. Default apps included with Gaia are stored in the Gecko profile on the device as an offline cache of the Web app at <code>/data/local/OfflineCache/*</code>.</p>
<p>If you want to browse this folder to look at the contents, you can do so using the <code>adb</code> tool:</p>
<pre>
<code>$ adb shell ls -la /data/local/OfflineCache/</code>
</pre>
<p>All other installed apps are stored in the DOM Registry component (you can find this file at /data/local/webapps). If they use appcache, the appcache will be populated at install time after&nbsp;<a class="link-https" href="https://bugzilla.mozilla.org/show_bug.cgi?id=702369" title="https://bugzilla.mozilla.org/show_bug.cgi?id=702369">bug 702369</a>&nbsp;lands.</p>
<h2 id="On_Windows">On Windows</h2>
<p>The following are created upon installation. All of these will be removed by the uninstaller (find it in the Windows Control Panel).</p>
<ul>
  <li>Shortcut on the current user's desktop.</li>
  <li>Shortcut in Start menu &gt; Programs for the current user.</li>
  <li>Registry entries to make the app appear in the Control Panel's "uninstall a program" menu.</li>
  <li>Folders for the app under <code>%APPDATA%\<em>scheme</em>;<em>domain[;port]</em></code>
    <ul>
      <li>Where <code><em>scheme</em></code> is <code>http</code> or <code>https</code>, <code><em>domain</em></code> is the app's domain name, and <code><em>port</em></code> is a&nbsp;port number, used only if the default port number is not used.</li>
      <li>Example folder name: <code>C:\Users\myuser\AppData\Roaming\https;mozqa.com;115</code></li>
      <li>The folders contain a stub executable (exe), configuration files, and an uninstaller.</li>
    </ul>
  </li>
</ul>
<p>When launched, each app has its own window with the following attributes:</p>
<ul>
  <li>A native menu bar (currently with File&nbsp;and Edit&nbsp;menus).</li>
  <li>The title of the window is the name of the app.</li>
  <li>System menu icon (in the upper left corner of the window) is specified by the app manifest.</li>
  <li>The displayed Taskbar icon is also specified by the app manifest.</li>
</ul>
<p>Each app runs in a separate process, and the app appears under its own name on the Applications tab of Task Manager.&nbsp; The executable name of the app (for example, "Mozilla QA WebRT Tester.exe") is the app name with illegal Windows filename characters removed.</p>
<p>Each app has its own profile with separate preferences, cookies, history, certificate authority settings, proxy settings, etc. Upon first run, profile data is created in the directory mentioned above, and in an equivalent directory in <code>%LOCALAPPDATA%. </code>Profile data is <em>not</em> removed by the uninstaller.</p>
<h2 id="On_Mac_OS_X">On Mac OS X</h2>
<p>Apps are installed into <code>/Applications</code>.</p>
<p>Opening the app launches the app in its own window minus the browser window frame. Apps execute using the Firefox binary. Each app runs in a separate process. Each app has its own profile, with separate preferences, cookies, certificate authority settings, proxy settings, etc.</p>
<h2 id="On_a_platform_with_no_native_Web_runtime">On a platform with no native Web runtime</h2>
<p>If the computer does not have the appropriate version of Firefox installed, some capabilities can be provided by the HTML5 Web runtime, also known as the HTML5 shim. This is a JavaScript file that can be imported by the app. See <a href="/en/Apps/Apps_JavaScript_API" title="https://developer.mozilla.org/en/Apps/Apps_JavaScript_API">Apps JavaScript API</a> for more information.</p>
<p>{{ languages( {"fr": "fr/Applications/Détails_spécifiques_à_la_plateforme"} ) }}</p>
Reverter para esta revisão