Problem Building Hello World Extension via BASH / OS X
7 posts • Page 1 of 1
November 28th, 2004, 1:01 pm
I am working on buidling my first extension. I have been following the tutorial at:
http://extensions.roachfiend.com/howto.php and trying to get it to work with the build script at (Im on OS X): http://kb.mozillazine.org/index.phtml?t ... ild_script I figured out how to organize the directory, and am just trying to rebuild the HelloWorld extension with the bash build script. Everything seems to work fine, and the resulting xpi files appears to be the same as the original (I uncompressed them and compared the files and directory structure). Anyways, when I try to install the extension, I get this error: -- Chrome Registration failed for Extension '{9AA46F4F-4DC7-4c06-97AF-5035170633FE}' when calling nsIXULChromeRegistry::installPackage with this chrome path: jar:file:///Users/mesh/Library/Application%20Support/Firefox/Profiles/rcosibv2.default/extensions/%7B9AA46F4F-4DC7-4c06-97AF-5035170633FE%7D/chrome/helloworld.jar!/content/helloworld/ (profile extension = true). Perhaps this path does not exist within the chrome JAR file, or the contents.rdf file at that location is malformed? -- I can't figure out what is wrong because the contents.rdf file has not changed, and the xpi structure is the same as the original from the tutorial (which installs fine). Anyone have any idea on what is going wrong? Or what I should do to debug it? Again, I am sorry if this is a super simple question. I am new to FireFox extension development, and trying to learn the ropes. mesh
November 28th, 2004, 1:08 pm
Did you run diff on the two packages (both in compressed and uncompressed form)?
If you post the XPIs somewhere, I'll be glad to inspect them...
November 28th, 2004, 1:17 pm
Thanks...
Here is the original XPI http://extensions.roachfiend.com/helloworld.xpi and here is the one I created with the build script: http://mesh.typepad.com/tmp/helloworld.xpi One thing I noticed is that the build script is not excluding the .DS_Store files / directories from mac. Would this cause the problem? mesh
November 28th, 2004, 2:50 pm
I think the paths in your zipfile are bogus. If you look at helloworld.jar, it has a leading .\ at the beginning of each path. You need to change the build script from
To
Note the removed ./ in the find command. You should do this for the content skin and locale lines.
November 28th, 2004, 3:22 pm
Ted is right. It will do the trick.
November 28th, 2004, 5:42 pm
Thanks. That did the trick. I also had to do the same for skins and locale.
Ill post an updated version of the file later tonight. I just need to figure out how to get it to exclude the .DS_Store files. mike chambers mesh
November 28th, 2004, 7:08 pm
fyi
I made a post about setting this up on OS X: http://mesh.typepad.com/blog/2004/11/bu ... nd_pa.html mike chambers
7 posts • Page 1 of 1
Return to Extension Development Who is onlineUsers browsing this forum: Baris Derin and 3 guests |
|