I want to be able to update my self-distribution firefox addon. I have so far signed my xpi file containing UID: [email protected]. But, in order for updates to work, my updater .xpi file should also have the same UID:[email protected]. I am able to update on firefox developer mode by turning off xpinstall.signatures.required to False. This is not reliable and I wish there is an easy to way to have mozilla sign my updater .xpi file as well without throwing the Duplicate UID found.
I looked at the two other ways to update and they seem complex. i.e via Signing API and web-ext sign.
In my main .xpi's manifest file, I have the below.
"version": "1.0",
"browser_specific_settings": {
"gecko": {
"id": "[email protected]",
"update_url": "https://mydomain/files/updates.json"
}
In my updater .xpi file, I have this.
"version": "1.2",
"browser_specific_settings": {
"gecko": {
"id": "[email protected]",
"update_url": "https://mydomain/files/updates.json"
}