Gaia/Build/Specification: Difference between revisions
Jump to navigation
Jump to search
| Line 7: | Line 7: | ||
=== pref === | === pref === | ||
==== user.js ==== | ==== user.js ==== | ||
* [https://developer.mozilla.org/en-US/docs/Mozilla/Preferences/A_brief_guide_to_Mozilla_preferences A_brief_guide_to_Mozilla_preferences] | |||
* [https://dxr.mozilla.org/mozilla-central/source/webapprt/prefs.js example of prefs.js] | |||
=== settings.json === | === settings.json === | ||
* settings.json is a json format file which store most of settings for [https://developer.mozilla.org/en-US/docs/Web/API/Settings_API Settings_API] | |||
* [https://github.com/mozilla-b2g/gaia/blob/master/customization/settings.json settings.json] | |||
== extensions == | == extensions == | ||
== webapps == | == webapps == | ||
=== app.gaiamobile.org === | === app.gaiamobile.org === | ||
* app's dirname + '.' + GAIA_DOMAIN / origin from app's own manifest | |||
==== application.zip ==== | ==== application.zip ==== | ||
* js | |||
* html | |||
* css | |||
* resources | |||
* local.json | |||
* manifest.webapp (same as below) | |||
==== manifest.webapp ==== | ==== manifest.webapp ==== | ||
* [https://developer.mozilla.org/en-US/Apps/Build/Manifest Firefox OS App Manifest] | |||
* [http://www.w3.org/TR/appmanifest/ w3c spec for appmanifest] | |||
=== webapps.json === | === webapps.json === | ||
* A json file to profile all app's information for gecko. | |||
* [https://dxr.mozilla.org/mozilla-central/source/dom/apps/Webapps.jsm?from=webapps.jsm&case=true#1 Gecko's webapps.jsm] | |||
== settings.json == | == settings.json == | ||
* same as above (settings.json) | |||
== user.js == | == user.js == | ||
* same as above (user.js) | |||
= How it works = | = How it works = | ||
Revision as of 03:44, 8 May 2015
This wiki would focus on what Gaia's buildscript need, what it would generate and how it works.
What it needs
What it generates
We'll list all the files and folder from profile while production and explain them one by one.
defaults
pref
user.js
settings.json
- settings.json is a json format file which store most of settings for Settings_API
- settings.json
extensions
webapps
app.gaiamobile.org
- app's dirname + '.' + GAIA_DOMAIN / origin from app's own manifest
application.zip
- js
- html
- css
- resources
- local.json
- manifest.webapp (same as below)
manifest.webapp
webapps.json
- A json file to profile all app's information for gecko.
- Gecko's webapps.jsm
settings.json
- same as above (settings.json)
user.js
- same as above (user.js)