While building my first Firefox OS app, Quickcall, I ran into a rather annoying bug, using Cordova.
When you run
cordova prepare firefoxos to convert your files in www/ folder to the platforms/firefoxos folder, Cordova will overwrite the manifest.webapp file in your dev folder with their default template.
1 2 3 4 5 6 7
Naturally I searched for a solution only to find an unsatisfying answer from the Mozilla team: they suggested manually update the manifest.webapp file every time you want to update your app for a new build — well, technically there’s no build process as Firefox OS apps run using the same Web APIs as its browser counterpart.
Instead just chain the build and copy commands and set up an alias for it, until the team fixed the bug.
1 2 3
You’re good now. All you need to do is run
ffos. whenever you want to update your app with the latest changes.