Alex
Alex

Reputation: 2004

Repackage Firefox SDK extensions

First af all, I'm newbie in Firefox SDK, so any small hint can be a great help for me. To modify a FF SDK extension, I unziped the .xpi file and changed one line of a js file and then ziped it again(as .xpi).But it does't work any more.Actually I followed the instruction explained here except there were no jar file in the directory structure of this addon, so I changed .js files directly. The directory structure of the package is as bellow:

/data
/doc
/lib
/node_modules
bootstrap.js
index.js
install.rdf
package.json

Even I tried to unzip and then zip the file again without doing any modification, but It didn't helped to see if it works or not, but it didn't work again. Is there any trick I miss? How should I repackage it?

Upvotes: 1

Views: 86

Answers (1)

Alex
Alex

Reputation: 2004

I found the answer to my question. The directory structure were the same, but as the code is using add-on SDK, xpi should be produced by jpm. So I modified desired js codes and then I used jpm to produce xpi and it works well now.;)

Upvotes: 1

Related Questions