I wrote firefox extension and want to be able to install it to firefox using sh script开发者_StackOverflow中文版, for example. Is it possible?
I found this way:
firefox -install-global-extension "C:\Temp\extension-file.xpi"
Note that the -install-global-extension requires you to actually be able to install it globally (I.E., are root).
https://developer.mozilla.org/en/Installing_extensions has various places you can place an extension, including user writable ones to make it installed.
place xpi in GUID named directory in "staging area". I would be more specific but I think you would prefer to read about it.
firefox -install-global-extension "C:\Temp\extension-file.xpi"
The above command cease to exist. Its no longer working with release of ff 3.5.
RIP -install-global-extension
精彩评论