[b]BUT[/b], If I extract the ZIP, and even without editing, zip it
back up again, and rename it to an XPI, I get a "no install script"
error when I attempt to use it. As far as I can tell, my [b]install.rdf
[/b] file has everything it needs. What could be the problem? The most
current RDF guide I've been able to find on this site is 2 years old,
and I can't tell if it's outdated info or not. Here's my file below:
[code]<?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>csn...@rabidquill.com</em:id>
<em:type>2</em:type>
<em:name>CS Ninja</em:name>
<em:version>1.0</em:version>
<em:creator>BJT</em:creator>
<em:contributor></em:contributor>
<em:description>This add-on is intended to make some Customer Service
tasks at work a little easier.</em:description>
<em:targetApplication>
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
<!-- Firefox -->
<em:minVersion>3.5</em:minVersion>
<em:maxVersion>3.7a1pre</em:maxVersion>
</Description>
</em:targetApplication>
</Description>
</RDF>
[/code]
Any help would be great.
I think the problem you're experiencing is simply this:
1) The structure of the xpi is
extension.zip
- install.rdf
- chrome.manifest
- etc
2) You unzip your file and this creates a folder with the same name of
the zip file.
3) When you zip the file again, you're including the folder, so the end
result is something like this
extension.zip
- extension (folder)
- install.rdf
- chrome.manifest
- etc
Which doesn't work.
All you need to do is generate the zip without including the folder and
it should work again.
- Jorge Villalobos