火狐插件 xpi打包
Yesterday I detailed the . Once you have your extension ready for testing, you need to package everything together into an XPI file. Luckily there's a quick and easy way to do so.
昨天,我详细介绍的 。 准备好要测试的扩展程序之后,您需要将所有内容打包到一个XPI文件中。 幸运的是,有一种快速简便的方法。
chrome.manifest评论 (chrome.manifest Review)
content myExtension jar:chrome/myExtension.jar!/content/overlay chrome://browser/content/browser.xul chrome://myExtension/content/myExtension.xulskin myExtension classic/1.0 jar:chrome/myExtension.jar!/skin/
Remember that the XPI build is based upon the chrome.manifest file.
请记住,XPI构建基于chrome.manifest文件。
壳牌/ Cygwin指令 (The Shell / Cygwin Directives)
cd myExtension/chromezip -r myExtension.jar content/* skin/*
We enter the chrome directory and generate a myExtension.jar file which holds all of the extension assets.
我们进入chrome目录并生成一个myExtension.jar文件,其中包含所有扩展程序资产。
cd ..zip myExtension.xpi install.rdf chrome.manifest chrome/myExtension.jar
We navigate to the top level extension directory and generate a myExtension.xpi file which serves as the extension's install package. That's all!
我们导航到顶级扩展目录,并生成myExtension.xpi文件作为扩展的安装包。 就这样!
Now you have no excuses not to create your Firefox extension! When you have one completed, post it in the comments below -- I can't wait to see what you come up with!
现在,您没有任何借口不创建Firefox扩展! 完成后,请在下面的评论中发布它-我迫不及待想看看您的想法!
翻译自:
火狐插件 xpi打包