Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Sök i support

Akta dig för supportbedrägerier: Vi kommer aldrig att be dig att ringa eller skicka ett sms till ett telefonnummer eller dela personlig information. Rapportera misstänkt aktivitet med alternativet "Rapportera missbruk".

Läs mer

XPI file appears to be corrupt, sideloading from a website download

  • 1 svar
  • 4 har detta problem
  • 3 visningar
  • Senaste svar av christ1

more options

Following instructions from this website:

https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Developing_WebExtensions_for_Firefox_for_Android

I've got the xpi file saved in my Androids download folder, when I click the file, firefox launchs and tells me the add on is unathorized, I then allow the install but get the error that the file appears to be corrupt... I'm pretty sure the manifest is written correctly,

{

 "manifest_version": 2,
 "name": "FireFoxExtension",
 "version": "1.0",
 "background":{
   "scripts":["background.js"]
 },
 "applications":{
   "gecko":{
     "id":"firefoxExtension"
   }
 },
 "content_scripts": [
   {
     "matches": ["*://*.mozilla.org/*"],
     "js": ["contentScript.js"]
   }
 ]

}

I am using this simple shell script to zip the xpi file...

sudo zip -r -FS ../fireExtension.xpi *

any ideas?

Following instructions from this website: https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Developing_WebExtensions_for_Firefox_for_Android I've got the xpi file saved in my Androids download folder, when I click the file, firefox launchs and tells me the add on is unathorized, I then allow the install but get the error that the file appears to be corrupt... I'm pretty sure the manifest is written correctly, { "manifest_version": 2, "name": "FireFoxExtension", "version": "1.0", "background":{ "scripts":["background.js"] }, "applications":{ "gecko":{ "id":"firefoxExtension" } }, "content_scripts": [ { "matches": ["*://*.mozilla.org/*"], "js": ["contentScript.js"] } ] } I am using this simple shell script to zip the xpi file... sudo zip -r -FS ../fireExtension.xpi * any ideas?

Alla svar (1)

more options

You should ask about this in the add-on forum. https://discourse.mozilla.org/c/add-ons