Bundle Addons with Firefox Mobile (Fennec)

十年热恋 提交于 2019-12-25 01:49:50

问题


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



来源:https://stackoverflow.com/questions/19844279/bundle-addons-with-firefox-mobile-fennec

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!