博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
火狐插件 xpi打包_将Firefox扩展程序打包为XPI
阅读量:2524 次
发布时间:2019-05-11

本文共 1371 字,大约阅读时间需要 4 分钟。

火狐插件 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打包

转载地址:http://rcpwd.baihongyu.com/

你可能感兴趣的文章
dell support
查看>>
转:Maven项目编译后classes文件中没有dao的xml文件以及没有resources中的配置文件的问题解决...
查看>>
MTK android 设置里 "关于手机" 信息参数修改
查看>>
单变量微积分笔记6——线性近似和二阶近似
查看>>
补几天前的读书笔记
查看>>
HDU 1829/POJ 2492 A Bug's Life
查看>>
CKplayer:视频推荐和分享插件设置
查看>>
CentOS系统将UTC时间修改为CST时间
查看>>
redis常见面试题
查看>>
导航控制器的出栈
查看>>
玩转CSS3,嗨翻WEB前端,CSS3伪类元素详解/深入浅出[原创][5+3时代]
查看>>
iOS 9音频应用播放音频之播放控制暂停停止前进后退的设置
查看>>
Delphi消息小记
查看>>
HNOI2016
查看>>
JVM介绍
查看>>
将PHP数组输出为HTML表格
查看>>
Java中的线程Thread方法之---suspend()和resume() 分类: ...
查看>>
经典排序算法回顾:选择排序,快速排序
查看>>
BZOJ2213 [Poi2011]Difference 【乱搞】
查看>>
c# 对加密的MP4文件进行解密
查看>>