|
阅读:2737回复:1
请教关于firefox扩展的自动更新
想让插件能够自动更新
按照firefox官网的方法进行了操作但不行 前提更新链接是http的 说下我的操作步骤,大家帮忙看下,谢谢 1.用mccoy为install.rdf加key 2.打包成xpi 3.编写update.rdf,用mccoy给它做签名 4.用sha1sum对xpi求hashkey并加入到update.rdf 5.将xpi和update.rdf上传到一个网站 确保update.rdf的版本比install.rdf的版本高 6.运行自动更新 没反应 |
|
|
1楼#
发布于:2009-11-04 13:45
楼主可以这样去troubleshooting:
1. 在about:config里,将extensions.logging.debug值设为true,关闭ff 2.在命令行下运行firefox -console,这样启动时,控制台会有extension的log输出。见下例: *** LOG addons.updates: Found an update entry for sunbox@lotus-scent.com version
0.6.1022
*** LOG addons.xpi: Download started for http://download.lotus-scent.com/sunbox/
browsers/sunbox.xpi to file e:\temp\tmp-fx4.xpi
*** LOG addons.xpi: Download of http://download.lotus-scent.com/sunbox/browsers/
sunbox.xpi completed.
*** WARN addons.xpi: Download failed: Downloaded file hash (8265d34a83e7eb686e8e
fed7b35de15792681995) did not match provided hash (03b2c04bf62bf2f572273406ce162
f21ceaa630a)
ReminderFox clh(1) {rmFx_cmdLine: [xpconnect wrapped nsICommandLine]}
ReminderFox clh(1) {rmFx_cmdLine: [xpconnect wrapped nsICommandLine]}这例是我开发阳光宝盒时的,错误是两个sha sum值不匹配。。 找到原因,就容易解决啦。 |
|