Firefox插件无法识别Update.rdf文件中的新版本

Firefox插件无法识别Update.rdf文件中的新版本,firefox,firefox-addon,rdf,add-on,Firefox,Firefox Addon,Rdf,Add On,我曾经“安装”我的Install.rdf文件并签署我的update.rdf文件 在我的Install.rdf文件中,我有: <?xml version="1.0"?> <RDF:RDF xmlns:em="http://www.mozilla.org/2004/em-rdf#" xmlns:NC="http://home.netscape.com/NC-rdf#" xmlns:RDF="http://www.w3.org/1999/02/22

我曾经“安装”我的Install.rdf文件并签署我的update.rdf文件

在我的
Install.rdf
文件中,我有:

<?xml version="1.0"?>
<RDF:RDF xmlns:em="http://www.mozilla.org/2004/em-rdf#"
         xmlns:NC="http://home.netscape.com/NC-rdf#"
         xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
  <RDF:Description RDF:about="rdf:#$e2DK."
                   em:id="{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"
                   em:minVersion="4.0"
                   em:maxVersion="15.*" />
  <RDF:Description RDF:about="urn:mozilla:install-manifest"
                   em:id="{ext-id}"
                   em:type="2"
                   em:name="Ext X"
                   em:version="1.0.4"
                   em:description="..."
                   em:creator="Bruno Leonardo Michels"
                   em:updateURL="http://www.example.com/dl/update.rdf"
                   em:bootstrap="false"
                   em:updateKey="xxx">
    <em:targetApplication RDF:resource="rdf:#$e2DK."/>
  </RDF:Description>
</RDF:RDF>
<?xml version="1.0"?>
<RDF:RDF xmlns:em="http://www.mozilla.org/2004/em-rdf#"
         xmlns:NC="http://home.netscape.com/NC-rdf#"
         xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
  <RDF:Description RDF:about="rdf:#$D1abg"
                   em:version="1.0.4">
    <em:targetApplication RDF:resource="rdf:#$G1abg"/>
  </RDF:Description>
  <RDF:Description RDF:about="rdf:#$G1abg"
                   em:id="{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"
                   em:minVersion="4.0"
                   em:maxVersion="15.*"
                   em:updateLink="http://www.example.com/dl/ext.xpi"
                   em:updateInfoURL="http://www.example.com/dl/ext.txt" />
  <RDF:Description RDF:about="rdf:#$M1abg"
                   em:version="1.0.3">
    <em:targetApplication RDF:resource="rdf:#$P1abg"/>
  </RDF:Description>
  <RDF:Description RDF:about="urn:mozilla:extension:{ext-id}"
                   em:signature="xxx">
    <em:updates RDF:resource="rdf:#$C1abg"/>
  </RDF:Description>
  <RDF:Seq RDF:about="rdf:#$C1abg">
    <RDF:li RDF:resource="rdf:#$D1abg"/>
    <RDF:li RDF:resource="rdf:#$M1abg"/>
  </RDF:Seq>
  <RDF:Description RDF:about="rdf:#$P1abg"
                   em:id="{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"
                   em:minVersion="4.0"
                   em:maxVersion="15.*"
                   em:updateLink="http://www.example.com/dl/ext103.xpi"
                   em:updateInfoURL="http://www.example.com/dl/ext.txt" />
</RDF:RDF>
当我单击“查找更新”时,Firefox请求update.rdf url并检索具有正确版本(1.0.4)的正确文件。但它什么都不做,不显示任何更新,不更新。。。它只是在1.0.3版中保持不变

是什么决定了插件的版本?我错过了什么


为了测试,我安装并签署了一个版本
1.0.4
,并将该版本更改为
1.0.3
,因此我有两个不同编号的版本。我安装了版本
1.0.3
,并试图通过更新获得
1.0.4

由于我没有使用
https
我必须在
update.rdf
文件的
em:updateLink
下包含
em:updateHash
。我使用了从生成的SHA1

em:updateHash=“sha1:”

添加散列后,您必须再次对文件进行签名。

我遇到了类似的问题,但文件上已经有一个sha1散列,因此不确定我的情况有什么问题。假设sha1散列是xpi文件的一部分,对吗?
em:updateHash="sha1:<hash>"