解凍してzip firefoxアドオンはできません
-
12-10-2019 - |
質問
私は私の古いFirefoxアドオンにいくつかの変更を加えようとしています(利用可能 ここ)。そこにある.xpiパッケージは機能します。しかし、私が文字通りそれを解凍して再ジップするだけで、それはまだインストールされますが、アドオンが挿入すべきコンテキストメニューアイテムはここにありません。私は世界で何が間違っているのでしょうか?
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.
助けてくれてありがとう!
解決
zip -r chrome.zip *をzipサブディレクトリもzipする必要があります。
所属していません StackOverflow