Integrating an add-on into a custom Firefox build

后端 未结 1 1428
野的像风
野的像风 2021-01-23 15:27

I\'m making a custom Firefox build. I would like to integrate my add-on (Add-on SDK) into the build. I would prefer this rather than directly integrating with the Firefox code.<

1条回答
  •  囚心锁ツ
    2021-01-23 16:07

    The documented way to do this is to include the .xpi file with the distribution in the directory:
    [Firefox install directory]/distribution/extensions
    The add-on will then be installed in (copied to) each profile upon the first use of that version of Firefox with the profile. The copy of the extension in each profile will be automatically updated using the normal auto-updating procedure. Effectively, the add-on will be treated as if separately installed in each profile. The user will not be asked to confirm installation of the add-on.

    For more information see:

    • Customizing Firefox: Including extensions with your distribution of Firefox (MDN documentation)
    • Installing extensions (MDN documentation)
    • Auto update of bundled Firefox extensions (Stackoverflow question)
    • Install WebExtensions on Firefox from the command line (Stackoverflow question)

    0 讨论(0)
提交回复
热议问题