MozTW 討論區
https://forum.moztw.org/

写好了Plugin编写了一个XPI档总出错
https://forum.moztw.org/viewtopic.php?f=46&t=34891
1 頁 (共 1 頁)

發表人:  詹天佐 [ 2012-03-26, 16:50 ]
文章主題 :  写好了Plugin编写了一个XPI档总出错

用NPAPI寫了一個plugin,想包成XPI档发布。但是Firefox总提示无法安装,因为和Firefox x.xx不兼容,我用Firefox12和Firefox4都不行。

我的XPI结构如下:
install.rdf
plugins\npMYplugin.dll

install.rdf内容为:
<?xml version="1.0"?>
<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>my_plugin@test.com</em:id>
<em:name>my plugin</em:name>
<em:version>1.3.0.6</em:version>
<em:type>2</em:type>
<em:unpack>true</em:unpack>
<em:targetApplication>
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
<em:minVersion>1.0.*</em:minVersion>
<em:maxVersion>13.0.*</em:maxVersion>
</Description>
</em:targetApplication>
<em:updateURL>http://www.te st.com/xpi/update.rdf</em:updateURL>
<em:description>MY plugin for firefox</em:description>
<em:creator>MY Inc.</em:creator>
<em:homepageURL>http://www.te st.com/</em:homepageURL>
</Description>
</RDF>

1 頁 (共 1 頁) 所有顯示的時間為 UTC + 8 小時
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/