搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

The extension I created will not install for testing. It always says not compatible with Firefox 23.0.1.

more options

I am in the process of porting an extension from Chrome to Firefox. The extension is called The Unofficial Openstudy App and it can be found on the Chrome Web Store. I have got everything ready for testing but it will not install the XPI file. It only says "not compatible with Firefox 23.0.1." I have tried modifying the minversion and maxversion in the install.rdf file but it DOES NOT WORK. Why is this?

Link to xpi: http://www.fast-files.com/getfile.aspx?file=65730

Contents of install.rdf for those who do not wish to download:

<?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>unknownnekomata@gmail.com</em:id>
    <em:type>2</em:type>
    <em:name>The Unofficial OpenStudy App (TUOSA)</em:name>
    <em:version>4</em:version>
    <em:creator>dumbsearch</em:creator>
    <em:contributor>Emoticon</em:contributor>
    <em:description>The Unofficial OpenStudy App (TUOSA) is a Firefox extension that extends and enhances the current functionality of OpenStudy.</em:description>
    <em:optionsURL>chrome://tuosa/content/options.xul</em:optionsURL>
 <em:iconURL>chrome://tuosa/skin/icon.png</em:iconURL>
 
 <!-- Firefox -->
 <em:targetApplication>
   <Description>
  <em:id>com.dumbsearch.tuosa</em:id> <!-- Firefox -->
  <em:minVersion>16.0</em:minVersion>
  <em:maxVersion>25.0</em:maxVersion>
   </Description>
 </em:targetApplication>
  </Description>
</RDF>
I am in the process of porting an extension from Chrome to Firefox. The extension is called The Unofficial Openstudy App and it can be found on the Chrome Web Store. I have got everything ready for testing but it will not install the XPI file. It only says "not compatible with Firefox 23.0.1." I have tried modifying the minversion and maxversion in the install.rdf file but it DOES NOT WORK. Why is this? Link to xpi: http://www.fast-files.com/getfile.aspx?file=65730 Contents of install.rdf for those who do not wish to download: <pre><nowiki><?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>unknownnekomata@gmail.com</em:id> <em:type>2</em:type> <em:name>The Unofficial OpenStudy App (TUOSA)</em:name> <em:version>4</em:version> <em:creator>dumbsearch</em:creator> <em:contributor>Emoticon</em:contributor> <em:description>The Unofficial OpenStudy App (TUOSA) is a Firefox extension that extends and enhances the current functionality of OpenStudy.</em:description> <em:optionsURL>chrome://tuosa/content/options.xul</em:optionsURL> <em:iconURL>chrome://tuosa/skin/icon.png</em:iconURL> <!-- Firefox --> <em:targetApplication> <Description> <em:id>com.dumbsearch.tuosa</em:id> <!-- Firefox --> <em:minVersion>16.0</em:minVersion> <em:maxVersion>25.0</em:maxVersion> </Description> </em:targetApplication> </Description> </RDF></nowiki></pre>

由cor-el于修改

被采纳的解决方案

you'll have to replace

com.dumbsearch.tuosa 

with the fixed guid for firefox:

{ec8030f7-c20a-464f-9b0e-13a3a9e97384}

https://developer.mozilla.org/en-US/docs/Install_Manifests#targetApplication
https://addons.mozilla.org/en-US/firefox/pages/appversions/

定位到答案原位置 👍 2

所有回复 (7)

more options

we cant download your XPI file plz make correct your link.

more options

What are your minversion and maxversion? Unless you set strict version numbering, Firefox generally should allow you to install extensions even if Firefox has passed the maxversion.

more options
more options

what is strict version numbering? my minversion is currently 16.0 and maxversion is 25.0

more options

选择的解决方案

you'll have to replace

com.dumbsearch.tuosa 

with the fixed guid for firefox:

{ec8030f7-c20a-464f-9b0e-13a3a9e97384}

https://developer.mozilla.org/en-US/docs/Install_Manifests#targetApplication
https://addons.mozilla.org/en-US/firefox/pages/appversions/

more options

I'm not seeing the Firefox GUID: {ec8030f7-c20a-464f-9b0e-13a3a9e97384}

    <!-- Firefox -->
    <em:targetApplication>
      <Description>
-	<em:id>com.dumbsearch.tuosa</em:id> <!-- Firefox -->
+       <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
	<em:minVersion>16.0</em:minVersion>
	<em:maxVersion>25.0</em:maxVersion>
      </Description>
    </em:targetApplication>
more options

Hi Emoticon, you wrote:

what is strict version numbering?

Optional setting. For future reference: https://developer.mozilla.org/en-US/docs/Install_Manifests#strictCompatibility