Différences entre les versions de « Tutorial:Packaging de WebApps »

De Wiki Seb35
Aller à la navigation Aller à la recherche
(+header, +manifest for web apps and bookmarks (W3C WD))
(+HTML5 cache)
Ligne 1 : Ligne 1 :
List and comparison of various webapps packaging, with the aim at finding commonalities and differencies to create a directory structure compatible with a largest set of deployment targets. (Possibly if there are uncompatible directory structures between two deployment targets, it will be up to the developer to choose what target s/he prefers.)
List and comparison of various webapps packaging, with the aim at finding commonalities and differencies to create a directory structure compatible with a largest set of deployment targets. (Possibly if there are uncompatible directory structures between two deployment targets, it will be up to the developer to choose what target s/he prefers.)
== HTML5 ==
* Status: W3C Candidate Recommandation
* Specification: http://www.w3.org/TR/html5/
* Package:
** Extension:
** MIME type:
** Format:
** Manifest: *.appcache
* Cache manifest:
** Extension: .appcache
** MIME type: text/cache-manifest
** Format: text


== Packaged Web Apps (Widgets) ==
== Packaged Web Apps (Widgets) ==
Ligne 9 : Ligne 23 :
** Extension: .wgt
** Extension: .wgt
** MIME type: application/widget
** MIME type: application/widget
** Archive: ZIP file
** Format: ZIP file
** Manifest: config.xml (see specification)
** Manifest: config.xml (see specification)


Ligne 18 : Ligne 32 :
* Directory structure:<table class="wikitable"><caption>Reserved File Names Table</caption><tr><th>file name</th><th>type</th><th>reserved for purpose</th></tr><tr><td>manifest.webapp</td><td>file</td><td>Manifest document</td></tr><tr><td>index.html</td><td>file</td><td>Default start file</td></table>
* Directory structure:<table class="wikitable"><caption>Reserved File Names Table</caption><tr><th>file name</th><th>type</th><th>reserved for purpose</th></tr><tr><td>manifest.webapp</td><td>file</td><td>Manifest document</td></tr><tr><td>index.html</td><td>file</td><td>Default start file</td></table>
* Package:
* Package:
** Archive: Web hosting or ZIP file
** Format: Web hosting or ZIP file
** Manifest: manifest.webapp (see documentation)
** Manifest: manifest.webapp (see documentation)


Ligne 28 : Ligne 42 :
** Extension: N/A
** Extension: N/A
** MIME type: N/A
** MIME type: N/A
** Archive: N/A
** Format: N/A
** Manifest: any name
** Manifest: *
** Manifest fetching method: &lt;link ref="manifest" href="..." /&gt;
** Manifest fetching method: &lt;link ref="manifest" href="..." /&gt;
* Manifest:
* Manifest:

Version du 9 septembre 2014 à 15:40

List and comparison of various webapps packaging, with the aim at finding commonalities and differencies to create a directory structure compatible with a largest set of deployment targets. (Possibly if there are uncompatible directory structures between two deployment targets, it will be up to the developer to choose what target s/he prefers.)

HTML5

  • Status: W3C Candidate Recommandation
  • Specification: http://www.w3.org/TR/html5/
  • Package:
    • Extension:
    • MIME type:
    • Format:
    • Manifest: *.appcache
  • Cache manifest:
    • Extension: .appcache
    • MIME type: text/cache-manifest
    • Format: text

Packaged Web Apps (Widgets)

  • Status: W3C Recommandation
  • Specification: http://www.w3.org/TR/widgets/
  • Directory structure:
    Reserved File Names Table
    file nametypereserved for purpose
    config.xmlfileConfiguration document
    icon.pngfileDefault icon
    icon.giffileDefault icon
    icon.jpgfileDefault icon
    icon.icofileDefault icon
    icon.svgfileDefault icon
    index.htmlfileDefault start file
    index.htmfileDefault start file
    index.svgfileDefault start file
    index.xhtmlfileDefault start file
    index.xhtfileDefault start file
    localesfolderContainer for localized content
  • Package:
    • Extension: .wgt
    • MIME type: application/widget
    • Format: ZIP file
    • Manifest: config.xml (see specification)

Firefox OS / Firefox Apps

  • Status: Industry specification
  • Documentation: https://developer.mozilla.org/en-US/Apps/Quickstart
  • Directory structure:
    Reserved File Names Table
    file nametypereserved for purpose
    manifest.webappfileManifest document
    index.htmlfileDefault start file
  • Package:
    • Format: Web hosting or ZIP file
    • Manifest: manifest.webapp (see documentation)

Manifest for web apps and bookmarks

  • Status: W3C Working Draft
  • Working draft: http://www.w3.org/TR/appmanifest/
  • Package:
    • Extension: N/A
    • MIME type: N/A
    • Format: N/A
    • Manifest: *
    • Manifest fetching method: <link ref="manifest" href="..." />
  • Manifest:
    • Extension: .json, .manifest
    • MIME type: application/manifest+json
    • Format: JSON