In this article,we are going to see how to setup Developing Environment for Mozilla Addons Development.Actually,there are two ways by which we can create Mozilla Addons and they are,
- Addon Builder
- Addon SDK
The simplest way to develop,test,build addons (using common web technologies) for Firefox is by Addon Builder,which is an online builder.It requires Internet connection but it is very simple and nice to move with!To know more about Addon Builder please Click Here.
Addon Builder won’t workout for you,if you don’t have the Internet Connectivity.Letz see,how to build addons using ADDON SDK,just follow the steps below to setup the Development Environment.
Addon SDK requires python for its functionality,download python 2.7 here and download ADDON SDK here.
Install the Python in your computer and be clear about its Installation location.In the following snapshot,Python will be installed in D:/Python
Continue with the installation process,on its completion you will get a confirmation window as show below:
Next,copy the downloaded addon sdk in the python folder installed,in our case it will be D:/installed/python/addon
Next create a new folder on the same location,this is the place where our Addon will be…!In our case,the folder name is Wikipanel.
Next,locate to our python location in command prompt and change the directory to the copied addon folder.Next,change the directory to bin folder inside the folder addon and then type activate and press enter,you will have a window as shown below:
Next,locate to the New folder created on the python folder,there use the command cfx init and press enter,you will have a window as shown below:
Our addon codes will be in the folder lib as a java script file.To run our addon use the command cfx run,you need to use the command two times.you will get a Firefox window with the addon installed will appear on the screen.
If you need help in developing addons,cfx docs will guide you…!This command will give a clear idea about addon development basics to in depth concepts.
Once you are done with addon development,change the directory to addon folder,then to bin folder and use the command deactivate to suspend the virtual development environment.
If you have any queries,feel free to hit a mail to [email protected]
“Help to shape a better WEB”