I found how do it. No need node.js or gasolin, just need to configure its manifest.
Here are the steps I followed: $ git clone https://github.com/mozilla/mortar-app-stub myapp # download app $ cd myapp $ gedit manifest.webapp # replace the line « "appcache_path": "/cache.manifest", » by « "package_path": "http://localhost/app/package.zip", », this is the next location of the application $ mkdir ~/server/app # location establishing of the application, with "server" defined as the Apache root folder $ zip -r ~/server/app/package.zip * # compression of the application $ cp manifest.webapp ~/server/app/ # copy of the manifest $ gedit ~/server/app/install.html # creation of the setup page, see below. Here are the contents of my manifest.webapp and install.html files: manifest.webapp : { "version": "0.1", "name": "My Awesome App", "description": "Your new awesome Open Web App", "launch_path": "/index.html", "icons": { "16": "/img/icons/mortar-16.png", "48": "/img/icons/mortar-48.png", "128": "/img/icons/mortar-128.png" }, "developer": { "name": "Your Name", "url": "http://yourawesomeapp.com" }, "installs_allowed_from": ["*"], "package_path": "http://localhost/app/package.zip", "locales": { "es": { "description": "Su nueva e impresionante Open Web App", "developer": { "url": "http://yourawesomeapp.com" } }, "it": { "description": "Il vostro nuovo fantastico Open Web App", "developer": { "url": "http://yourawesomeapp.com" } } }, "default_locale": "en" } install.html <html> <body> <p>Packaged app installation page</p> <script> // This URL must be a full url. var manifestUrl = 'http://localhost/app/manifest.webapp'; var req = navigator.mozApps.installPackage(manifestUrl); req.onsuccess = function() { alert(this.result.origin); }; req.onerror = function() { alert(this.error.name); }; </script> </body> </html> Thank you for your answers. It helped me to write a correct manifest.webapp. _______________________________________________ dev-webapps mailing list [email protected] https://lists.mozilla.org/listinfo/dev-webapps
