更新我的Firefox扩展 - 自动更新无法正常工作

时间:2012-07-11 23:05:44

标签: firefox firefox-addon firefox-addon-sdk

我的Firefox扩展程序未在官方扩展站点上托管。它托管在安全(https)服务器上。根据我的阅读,我不需要签署我的插件,对吧?

问题在于它无法正常工作。我安装了我的插件,然后点击“检查更新”,但它说没有找到更新。我已将更新清单和安装清单中的版本从initial.rev332设置为initial.rev333。

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

我的安装清单......

<?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>

我的更新清单

<?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>

1 个答案:

答案 0 :(得分:0)

我认为您的插件版本号需要采用不同的格式: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/