Firefox OS Support - llorsat/wonkajs GitHub Wiki

Wonka.js make by default your application supported for Firefox OS. [Not supported since 1.7.0]

Initialize

When you initialize your project...

$ wonkajs project library

You get on 1.2.1 version an additional file called manifest.webapp that's used for Firefox OS installation process.

Also, we've added an installation button to display on your website, when it loads on Firefox OS.

If you don't want to display this installation button, just open package.json file and change the value of settings.installable to false.

## Test

To test, just generate your project deploy with command:

$ wonkajs deploy

When you have generated the deploy, edit the file deploy/manifest.webapp:

{
  "name": "wonkajs",
  "version": "0.0.1",
  "description": "Wonka.js website",
  "launch_path": "index.html",
  "fullscreen": "false",
  "type": "web",
  "orientation": [
    "portrait"
  ],
  "icons": {
    "16": "icons/icon-16.png",
    "48": "icons/icon-48.png",
    "128": "icons/icon-128.png"
  },
  "developer": {
    "name": "Julian",
    "url": "http://jceb.info"
  },
  "installs_allowed_from": [
    "*"
  ],
  "default_locale": "en"
}

The important stuff is modify the routes of static files:

{
  "name": "wonkajs",
  "version": "0.0.1",
  "description": "Wonka.js website",
  "launch_path": "deploy/index.html",
  "fullscreen": "false",
  "type": "web",
  "orientation": [
    "portrait"
  ],
  "icons": {
    "16": "deploy/icons/icon-16.png",
    "48": "deploy/icons/icon-48.png",
    "128": "deploy/icons/icon-128.png"
  },
  "developer": {
    "name": "Julian",
    "url": "http://jceb.info"
  },
  "installs_allowed_from": [
    "*"
  ],
  "default_locale": "en"
}

Now run the server and go on firefox os simulator or device to http://localhost:/deploy/index.html

And there you go, your project must works.

If you want to read more about Firefox OS: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS.

⚠️ **GitHub.com Fallback** ⚠️