Question

Je suis en train de faire quelques changements à un vieux addon Firefox de mes (disponible ). Le paquet .xpi il fonctionne. Mais quand je littéralement Dézippez juste et rezip, il sera toujours installer, mais le menu contextuel-point, le addon doit insérer est pas ici. Que dans le monde ce que je pourrais faire mal?

dylan~/scripts$ git clone git@github.com:nospampleasemam/peepshow
dylan~/scripts$ cd peepshow
dylan~/scripts/peepshow$ rm -rf *
dylan~/scripts/peepshow$ git checkout peepshow.xpi
dylan~/scripts/peepshow$ ## at this point I can install the addon and it works.
dylan~/scripts/peepshow$ unzip peepshow.xpi
Archive:  peepshow.xpi
   creating: chrome/
   creating: chrome/skin/
   creating: chrome/content/
 extracting: chrome/skin/returntoresults.css~  
 extracting: chrome/skin/returntoresults.css  
  inflating: chrome/skin/icon.jpg    
  inflating: chrome/content/loader.js  
  inflating: chrome/content/loader.js~  
  inflating: chrome/content/overlay.xul  
 extracting: chrome/content/resultscollector.js~  
  inflating: chrome/content/overlay.xul~  
  inflating: chrome.manifest         
  inflating: icon.png                
  inflating: install.rdf             
dylan~/scripts/peepshow$ rm peepshow.xpi 
dylan~/scripts/peepshow$ zip *
  adding: defaults/ (stored 0%)
  adding: defaults/preferences/ (stored 0%)
  adding: defaults/preferences/list.js~ (stored 0%)
  adding: defaults/preferences/list.js (stored 0%)
  adding: install.rdf (deflated 54%)
  adding: chrome.manifest (deflated 41%)
dylan~/scripts/peepshow$ ls
chrome  chrome.manifest  chrome.zip  icon.png  install.rdf
dylan~/scripts/peepshow$ mv chrome.zip chrome.xpi
dylan~/scripts/peepshow$ ## now I can install chrome.xpi
dylan~/scripts/peepshow$ ## but the menu item doesn't appear.

Merci pour toute aide!

Était-ce utile?

La solution

Vous devez répertoires zip sous ainsi: zip -r chrome.zip *

.
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top