Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Ok so i downloaded the source code of an addon for Firefox, that was a .xpi file so i extracted that, changed some functions and now i would like to recreate a .xpi file so i can test it in Firefox.

Can anyone tell me how to do this ?

share|improve this question

closed as off topic by 8128, Marco Ceppi Dec 20 '10 at 20:18

Questions on Ask Ubuntu are expected to relate to Ubuntu within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

1  
This is better suited for Stack Overflow since it not specific to Ubuntu - or the Ubuntu Family at all. –  Marco Ceppi Dec 20 '10 at 20:19

1 Answer 1

up vote 3 down vote accepted

.xpi files are just zip files,you can create it using the zip command.

i.e zip /path/to/foo.xpi file1 file2 file3

See the extension packaging guide here.

share|improve this answer
    
Ooh ok, i tried that before and "installed" it with Firefox (click install in the addon manager and located the file) but the addon doesn't seem to work anymore. I didn't make any major changes, just switched the mappings of 2 hotkeys... This part of the question is solved, thanks. –  Aerus Dec 20 '10 at 20:05

Not the answer you're looking for? Browse other questions tagged or ask your own question.