Bundle Addons with Firefox Mobile (Fennec)

2019-08-28 02:46发布

问题:

How to Bundle Addons with Firefox Mobile (Fennec) for Android ?
I would like to include several add-ons on the build process in a away that users could start using them immediately.
I've searched Mozilla Wiki and couldn't find any relevant information about this. tks.

回答1:

I've found the answer:

To create a distribution build locally, put your distribution folder at objdir/dist/bin/distribution, then package the app as you normally would. The distribution files will be copied out to /data/data/org.mozilla.fennec_yourname/distribution, and they will override a system distribution if it is present.

Add-ons do no need to be listed in any file. Instead, include them in an extensions directory as follows, and they will be automatically loaded:

  • distribution/ * extensions/
    • someaddon@somedomain.com.xpi
    • ...

https://wiki.mozilla.org/Mobile/Distribution_Files#Add-ons