Simultaneously providing AMO and self-hosted updates


#1

When I upload a new version of my addon, I can choose whether I want to distribute the update via AMO or if I want to self-host it.

My question is about what happens with published updates when I am publishing a new update to an extension with the same id but via a different distribution option.

  1. User installed extension from AMO -> AMO update is published -> User gets the update :heavy_check_mark:
  2. User installed extension from AMO -> self-hosted update was published -> what happens? :question:
  3. User installed self-hosted extension -> self-hosted update was published -> User gets the update :heavy_check_mark:
  4. User installed self-hosted extension -> AMO update is published -> what happens? :question:

(Jorge) #2

There’s some documentation about it here: https://developer.mozilla.org/en-US/Add-ons/Distribution

If your self-hosted files have an update_url defined in them, then it’s simple: AMO versions update to new AMO versions and self-hosted versions update to new self-hosted versions. You can update either channel whenever you want without affecting the other.

If you don’t include an update_url in a self-hosted version, then it will effectively work like an AMO version and check for updates on AMO. If it updates to an AMO version, then it will update only to AMO versions from then on.