Skip to content
This repository has been archived by the owner on May 13, 2020. It is now read-only.

Commit

Permalink
Add FirefoxOS platform
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzhs committed Jun 10, 2014
1 parent a5b8c19 commit d070782
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -1,2 +1,4 @@
plugins
*.sublime-*
node_modules
bower_components
16 changes: 13 additions & 3 deletions README.md
Expand Up @@ -5,8 +5,8 @@ Native app for glowing-bear, the HTML5 irc client of the 21st century. Android,

You can install the developer preview from the Google Play Store [here](https://play.google.com/store/apps/details?id=com.glowing_bear)

Building
--------
Getting started
---------------

After cloning this repository, you will need to get the glowing-bear submodule:

Expand All @@ -21,9 +21,19 @@ Then, install cordova:
Next, you need to have cordova generate all the necessary build files that aren't checked into git:

`cordova platform update android`
`cordova platform update firefoxos`

Don't worry about the errors it will spew at you (if you insist on having them disappear, just run the command again. It won't change anything, but this time around, no errors should be found). Now you are ready to build! Type `cordova build` to build. Your apk file will end up in the
Don't worry about the errors it will spew at you (if you insist on having them disappear, just run the command again. It won't change anything, but this time around, no errors should be found). Now you are ready to build!

Building for Android
--------------------

Type `cordova build android` to build. Your apk file will end up in the
`/platforms/android/ant-build/` folder.

Some other commands you might want to have a look at are `cordova emulate` to build and install in an Android emulator instance, or `cordova run` to build and install onto a device (or an emulator). You can also have a look at http://www.ng-newsletter.com/posts/angular-on-mobile.html#native for some more information.

Building for FirefoxOS
----------------------

As FirefoxOS apps are pure web apps, a simple `cordova prepare firefoxos` suffices to copy all the necessary files to the correct places. You can then point your Firefox to `about:app-manager` and add `platforms/firefoxos/www` as a packaged app. Done! If you want to learn more, https://hacks.mozilla.org/2014/02/building-cordova-apps-for-firefox-os/ is a great starting point.
3 changes: 3 additions & 0 deletions config.xml
Expand Up @@ -9,4 +9,7 @@
</author>
<content src="index.html" />
<access origin="" />
<platform name="firefoxos">
<icon src="www/assets/img/glowing_bear_128x128.png" width="128" height="128" />
</platform>
</widget>
Empty file added platforms/android/assets/.keep
Empty file.
5 changes: 5 additions & 0 deletions platforms/firefoxos/.gitignore
@@ -0,0 +1,5 @@
config.xml
build/
cordova/
platform_www/
www/
Empty file added plugins/.keep
Empty file.

0 comments on commit d070782

Please sign in to comment.