2010-12-23 173 views
1

我想對我的舊Firefox插件(可用here)進行一些更改。 .xpi包在那裏工作。但是,當我簡單地解壓並重新壓縮時,它仍然會安裝,但插件應插入的上下文菜單項不在此處。我可以做什麼錯了?無法解壓縮和Firefox zip插件

dylan~/scripts$ git clone [email protected]: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. 

感謝您的幫助!

回答

4

您還需要壓縮子目錄:zip -r chrome.zip *。