Confirmed users
699
edits
Line 127: | Line 127: | ||
adb shell kill `adb shell toolbox ps | grep "b2g" | awk '{ print $2; }'` | adb shell kill `adb shell toolbox ps | grep "b2g" | awk '{ print $2; }'` | ||
You can add new applications to your local gaia directory and then push those onto device. To do that, | |||
1. In your gaia checkou $gaia, create a new directory $gaia/apps/$foo. Here, I'll use $foo to refer to your new application. | |||
2. Copy all your applications files into $gaia/apps/$foo/. | |||
3. Create a new file $gaia/apps/$foo/manifest.json. Here are some "starter" file contents, edit to your desire | |||
{ | |||
"name": "Foo", | |||
"default_locale": "en-US", | |||
"icons": { | |||
"120": "your/icon/here.png" | |||
}, | |||
"description": "Foo", | |||
"launch_path": "/", | |||
"locales": { | |||
"en-US": { | |||
"name": "Foo", | |||
"description": "Foo" | |||
}, | |||
"fr": { | |||
"name": "Foo", | |||
"description": "Foo" | |||
}, | |||
}, | |||
"developer": { | |||
"url": "http://foo.example.com", | |||
"name": "You" | |||
} | |||
} | |||
4. Append your app's information to $gaia/apps/webapps.json. (This is a temporary step.) This will get you started | |||
"foo": { | |||
"origin": "http://foo.example.com/", | |||
"installOrigin": "http://foo.example.com/", | |||
"receipt": null, | |||
"installTime": 1323339869000 | |||
} | |||
5. Upload a new gaia with your changes | |||
$ make install-gaia | |||
==Restoring Gecko== | ==Restoring Gecko== |