更新我的Firefox扩展 - autoupdates无效 [英] Updating my Firefox extension - autoupdates not working

查看:148
本文介绍了更新我的Firefox扩展 - autoupdates无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Firefox扩展不在官方扩展站点上。它位于安全(https)服务器上。从我读过的内容来看,我不需要签名我的插件,对吧?

问题在于它不起作用。我安装我的插件,然后点击检查更新,但是没有找到更新。我已经在更新清单和安装清单中将initialization.rev332中的版本设置为initial.rev333。

有人可以说明我的情况吗?非常感谢:)

我的安装清单...

 <?xml version =1.0encoding =utf-8?> 

<描述about =urn:mozilla:install-manifest>
< em:id> jid0-BsYlcooDmgR331LCKZwABfD4yQk @ jetpack< / em:id>
< em:version> initial.rev333< / em:version>
< em:type> 2< / em:type>
< em:bootstrap> true< / em:bootstrap>
< em:解包> false< / em:解包>

<! - Firefox - >
< em:targetApplication>
<说明>
< em:id> {jid0-BsYlcooDmgR331LCKZwABfD4yQk @ jetpack}< / em:id>
< em:minVersion> 3.4< / em:minVersion>
< em:maxVersion> 30。*< / em:maxVersion>
< /说明>
< / em:targetApplication>

<! - - 前端元数据 - >
< em:name> iStyla< / em:name>
< em:description> iStyla是Facebook,Twitter和Google+的主题市场< / em:description>
< em:creator> iStyla< / em:creator>
< em:homepageURL> https://www.istyla.com/< / em:homepageURL>

< em:updateURL> https://www.istyla.com/Updates/firefox.rdf< / em:updateURL>


< /说明>
< / RDF>

我的更新清单

 <?xml version =1.0?> 
xmlns =http:// www。 mozilla.org/2004/em-rdf#\">

<更新>
< r:Seq>
< r:li>
< r:说明>
< version> initial.rev333< / version>
< targetApplication>
< r:说明>
< id> {jid0-BsYlcooDmgR331LCKZwABfD4yQk @ jetpack}< / id>
< minVersion> 3.0< / minVersion>
< maxVersion> 30。*< / maxVersion>
< updateLink> https://www.istyla.com/Updates/Firefox.xpi< / updateLink>
< updateHash>
sha256:af031d8bb9303a42ab1f270845e9c692d65cd4fc
< / updateHash>
< / r:说明>
< / targetApplication>
< / r:说明>
< / r:li>
< / r:Seq>
< / updates>
< / r:说明>

< / r:RDF>


解决方案

我认为您的插件版本号需要在不同的格式: https://developer.mozilla.org/en/Install_Manifests#version



请尝试以下列出的版本格式来区分版本: https ://developer.mozilla.org/en/Toolkit_version_format



也许试试< em:version> 0.0.333< em:version>



另外,我不认为< em:maxVersion> 30。*< / em:maxVersion> 是有效的(我可能是错误的,但是如果你没有托管在AMO上,它可能工作正常)。以下是可用的有效Firefox版本号列表FWIW: https:// addons。 mozilla.org/en-US/firefox/pages/appversions/


My Firefox extension is not hosted on the official extension site. It is hosted on a secure (https) server. From what I have read, I do not need to sign my add-on, right?

The problem is that it is not working. I install my plugin, and click on 'Check for updates', but it says no updates have been found. I have set the version in the update manifest and in the install manifest from initial.rev332 to initial.rev333.

Could someone shed some light on my situation? Thanks very much :)

My install manifest...

<?xml version="1.0" encoding="utf-8"?>
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#">

<Description about="urn:mozilla:install-manifest">
<em:id>jid0-BsYlcooDmgR331LCKZwABfD4yQk@jetpack</em:id>
<em:version>initial.rev333</em:version>
<em:type>2</em:type>
<em:bootstrap>true</em:bootstrap>
<em:unpack>false</em:unpack>

<!-- Firefox -->
<em:targetApplication>
  <Description>
    <em:id>{jid0-BsYlcooDmgR331LCKZwABfD4yQk@jetpack}</em:id>
    <em:minVersion>3.4</em:minVersion>
    <em:maxVersion>30.*</em:maxVersion>
  </Description>
</em:targetApplication>

<!-- Front End MetaData -->
<em:name>iStyla</em:name>
<em:description>iStyla is a marketplace for themes for Facebook, Twitter and Google+     </em:description>
<em:creator>iStyla</em:creator>
<em:homepageURL>https://www.istyla.com/</em:homepageURL>

<em:updateURL>https://www.istyla.com/Updates/firefox.rdf</em:updateURL>


</Description>
</RDF>

My Update Manifest

<?xml version="1.0"?>
<r:RDF xmlns:r="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns="http://www.mozilla.org/2004/em-rdf#">

<r:Description about="urn:mozilla:extension:jid0-BsYlcooDmgR331LCKZwABfD4yQk@jetpack">
<updates>
<r:Seq>
<r:li>
<r:Description>
    <version>initial.rev333</version>
    <targetApplication>
        <r:Description>
        <id>{jid0-BsYlcooDmgR331LCKZwABfD4yQk@jetpack}</id>
        <minVersion>3.0</minVersion>
        <maxVersion>30.*</maxVersion>
        <updateLink>https://www.istyla.com/Updates/Firefox.xpi</updateLink>
        <updateHash>
        sha256:af031d8bb9303a42ab1f270845e9c692d65cd4fc
        </updateHash>
        </r:Description>
    </targetApplication>
</r:Description>
</r:li>
</r:Seq>
</updates>
</r:Description>

</r:RDF>

解决方案

I think your addon version number needs to be in a different format: https://developer.mozilla.org/en/Install_Manifests#version

Try the versioning format listed here to differentiate versions: https://developer.mozilla.org/en/Toolkit_version_format

Maybe try <em:version>0.0.333</em:version>

Also, I don't think <em:maxVersion>30.*</em:maxVersion> is valid (I could be wrong though. If you're not hosting it on AMO it might work alright). Here is the list of valid Firefox version numbers available FWIW: https://addons.mozilla.org/en-US/firefox/pages/appversions/

这篇关于更新我的Firefox扩展 - autoupdates无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆