更新了 Firefox 扩展 - 仍然显示“未找到更新”。

发布于 2024-07-06 14:20:09 字数 354 浏览 8 评论 0原文

我正在开发一个新版本的 Firefox 扩展,但在发布它并增加 install.rdf 和 update.rdf 中的 em:version 后,当我单击“查找更新”时,Firefox 报告“未找到更新”。 当我在调试状态下运行它时,控制台中的输出实际上与我不启用更新时看到的输出相同。

它以 RDFItemUpdater:checkForUpdates 和所有参数开始,并返回 Addon Update Ended 和状态:8。

我使用 McCoy 工具验证了扩展已签名,并且具有与旧扩展相同的 Id,等等。我不是确定还可以尝试什么。 任何意见,将不胜感激。 这是 Firefox 3 的情况(并且扩展被标记为与其兼容......这没有改变)。

I am working on a new version of a firefox extension, but after releasing it, and incrementing the em:version in install.rdf and update.rdf, when I click "Find updates" Firefox reports that "No updates were found." When I run it with debugging on, the output in the console is actually identical to what I see when I don't put the update live.

It starts with RDFItemUpdater:checkForUpdates with all of the parameters, and returns with Addon Update Ended and status: 8.

I verified with McCoy tool that the extension is signed, and has the same Id as the old one, etc. I'm not sure what else to try. Any advice would be appreciated. This is with Firefox 3 (and the extension is marked as compatible with it... that didn't change).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

话少心凉 2024-07-13 14:20:09

确保您的 update.rdf 文件使用适当的内容类型,即 text/rdf、text/xml 或 application/xml+rdf

Make sure your update.rdf file is being served with an appropriate Content-Type, i.e. text/rdf, text/xml or application/xml+rdf

凝望流年 2024-07-13 14:20:09

如果您最近才更改 update.rdf,则它可能已被缓存。 将其加载到浏览器中,然后按住 Shift-Refresh。

If you've only recently changed update.rdf, maybe it's cached. Load it in the browser then Shift-Refresh.

孤独难免 2024-07-13 14:20:09

以下是一些对我有帮助的好提示: https://developer.mozilla.org/en/Extension_Versioning ,_Update_and_Compatibility

但是,如果扩展被标记为“实验性”,自动更新功能将无法工作。

here are some nice tips that helped me: https://developer.mozilla.org/en/Extension_Versioning,_Update_and_Compatibility

but, auto update function will not work if extension is marked "experimental".

半﹌身腐败 2024-07-13 14:20:09

我遇到了类似的问题,认为这是由于 rdf 文件无效造成的。 您是否检查过您的内容是否已使用此工具进行了解析? http://www.w3.org/RDF/Validator/

I'm having a similar issue, and think it's due to an invalid rdf file. Did you check that yours parsed with this tool? http://www.w3.org/RDF/Validator/

小巷里的女流氓 2024-07-13 14:20:09

有很多事情会搞砸,其中之一是安装 AMO 的扩展并期望它在您更改 update.rdf 时更新:)

There are lots of things to mess up, one of which is installing an extension from AMO and expecting it to update when you change your update.rdf :)

隔纱相望 2024-07-13 14:20:09

我也遇到了同样的问题。 在我的 update.rdf 中,我的 minVersion 属性中有一个通配符:

minVersion="3.0.*"

删除通配符修复了状态 8:

minVersion="3.0"

更新现已生效(控制台显示状态 1)。 这是使用 Firefox 3.0.18。

我的猜测是,状态 8 意味着理解文件内容时出现问题(不一定是 RDF 解析问题)。 如果您的 minVersion 没有通配符,则可能在某处隐藏了无效字符。

I was having the same problem. In my update.rdf, I had a wildcard in my minVersion attribute:

minVersion="3.0.*"

Removing the wildcard fixed the status 8:

minVersion="3.0"

The update works now (console shows status 1). This was using Firefox 3.0.18.

My guess is that status 8 means there was a problem understanding the contents of the file (not necessarily an RDF parsing problem). If your minVersion doesn't have a wildcard, maybe there's an invalid character hiding somewhere.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文