How do I code my add-on so Firefox knows where to check for updates?

I'm developing an add-in, and it's hard for me to find documentation that explains how to tell Firefox where to look for updates. If I host .xpi on my website and the user downloads and installs this .xpi, does Firefox know to check this URL for changes? or do i need to put something in package.json?

+3
source share
1 answer

Are you using an online constructor or command line tool SDK? You can specify the update URL using the cfx tool:

https://developer.mozilla.org/en-US/Add-ons/SDK/Tools/cfx

cfx xpi :

cfx xpi --update-link https://example.com/addon/latest
          --update-url https://example.com/addon/update_rdf

, - xpi, , install.rdf, . . MDN install.rdf:

https://developer.mozilla.org/en/Install_Manifests

+2

All Articles