How to publish an Firefox OS application or Game in the store (Firefox Marketplace)

Welcome!

This is a short post, I’m just going to show you how to publish you HTML5 application or game to the Firefox Marketplace. In this example I’ll be posting a Cocos2d-js game to the store, but this tutorial works with any HTML5 project.

I - Understanding the Open Web apps standard

In this post I’ll show the most important Mozilla Documentation.

An open web app manifest contains information that a web browser needs to interact with an app.
A manifest is one of the key things that distinguishes an open web app from a website. It is a JSON file with a name and description for the app, and it can also contain the origin of the app, icons, and the permissions required by the app, among other things. The browser that handles the manifest must incorporate a Web runtime

So, in the root of our project, we need to create a manifest file, called manifest.webapp.

The manifest bellow is about the game developed in this tutorial. Take a look, if you need, read this documentation for more information.

{
  "version": "1.0",
  "name": "Slide and Survive",
  "description": "Just move the green square and try to escape from the red ones. ",
  "launch_path": "/index.html",
  "icons": {
    "128": "/res/icon.png"
  },
  "developer": {
    "name": "Aron Bordin",
    "url": "http://blog.rhesoft.com"
  },
  "default_locale": "en",
  "installs_allowed_from": [
    "*"
  ],
  "orientation": "landscape"
}

II - Testing your app

To test and debug your app, read this documentation. With this, you will be able to run/debug your app in Firefox OS device and simulator.

III - Publishing it!

After add the manifest file, and test if it’s working with the app manager, you are ready to publish your application.

You can read all about publishing here, it’s a complete tutorial!!

That’s it, simple. Thx for reading!

Aron Bordin

Aron Bordin
Computer Science Student and AI researcher. Always coding something fun :)

[Tutorial] Developing Android Background Services

### Welcome!In this post, I'll show you how to develop background services on Android Studio. We'll see two type of services: `Service` a...… Continue reading