I am also not sure about how to do that, but you can see this tutorial:

https://addons.mozilla.org/en-US/developers