Best unofficial Apache Server developers community |
|
I am following the tutorial at http://www.borngeek.com/firefox/automatic-firefox-extension-updates/ to make my FF extension can be updated automatically to users, but I stuck at the last part "Hosting an Update Manifest" as I am using Tomcat serve and I have no ideas how to set up the .htaccess (Is the .htaccess file similar with WEB-INF directory in terms of configure server?) What I have done so far, Create a key pair: Public-Key and Private-Key Calculate sha256: b3290c69a1... Create update.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:myextension@mozilla.myextension.org">
<updates>
<r:Seq>
<r:li>
<r:Description>
<version>1.0.1</version>
<targetApplication>
<r:Description>
<id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</id>
<minVersion>3.5</minVersion>
<maxVersion>5.0.*</maxVersion>
<updateLink>http://localhost:8080/myextension/pluginupdate/myextension.xpi</updateLink>
<updateHash>
sha256:b3290c69a1...
</updateHash>
</r:Description>
</targetApplication>
</r:Description>
</r:li>
</r:Seq>
</updates>
</r:Description>
</r:RDF>
Sign update.rdf using Key Place singed update.rdf and myextension.xpi under pluginupdate directory, where pluginupdate is on the same level with WEB-INF. My 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>myextension@mozilla.myextension.org</em:id>
<em:name>My Test extension</em:name>
<em:version>1.0</em:version>
<em:description>Test Mozilla Extension.</em:description>
<em:creator>TEST Group</em:creator>
<!-- optional items -->
<em:contributor>Me</em:contributor>
<em:homepageURL>http://?????????/</em:homepageURL>
<em:updateKey>
MIGfMA0G.....
</em:updateKey>
<em:updateURL>http://localhost:8080/myextension/pluginupdate/update.rdf</em:updateURL>
<!-- Firefox -->
<em:targetApplication>
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
<em:minVersion>3.5</em:minVersion>
<em:maxVersion>5.0.*</em:maxVersion>
</Description>
</em:targetApplication>
</Description>
</RDF>
When i restart FF Browser, nothing happens. When I start FF Browser using command line with option -console *** LOG addons.xpi: startup *** LOG addons.xpi: checkForChanges *** LOG addons.xpi: No changes found *** LOG addons.xpi: Opening database So, how can I host and configure Tomcat to host the update manifest? Thanks
posted via StackOverflow
|
|
 
|
The point of the .htaccess file is simply ensuring that the server knows the MIME types. It seems that you can do that for Tomcat by changing conf/web.xml file:
I looked through your update.rdf and install.rdf files and I don't see any obvious issues - it should work. You might want to go to |