Jump to content
xisto Community
Sign in to follow this  
szupie

Packagin An Xpi On A Mac How?

Recommended Posts

It's easy to package a Firefox extension on Windows after you have all the files ready: just zip the files up with WinZip, and change the file extension to xpi. But on a Mac, you can't just change the file extension and expect the file type to change also. When I tried to drag a zipped file with the xpi file extension into Firefox, it asked me if I wanted to download the file, instead of trying to install the file. How am I supposed to package the extension, then? Do I have to switch to a Windows computer everytime I want to do so (Not that it happens often)? Is keeping the extension in the unpacked form in a special folder on my computer my only other option? I can't seem to find any references to this in the manuals for developers.

Share this post


Link to post
Share on other sites

You could always set up a webserver on your mac and make sure it reports the mime type for .xpi properly. I have a feeling your mac is being too smart for its own good and looking at the alternate streams on the file. Either that, or you just renamed the file without changing the extension; i.e., file.zip -> file.xpi.zip. Try doing the rename in the terminal as opposed to the finder. Maybe the Get Info command will let you change the file type...I hope all of this helps ;)

Share this post


Link to post
Share on other sites

Packagin An Xpi on a Mac - How?

Packagin An Xpi On A Mac

 

You can go to Tools -> Add-ons and drag the .Xpi file. It will then ask you if you want to install that file.

 

I'm sure it works because I just did, though "tools" and "add-ons" might be with different names in your firefox, because mine is in Spanish, and that's the closest words I could think of.

 

-daniela

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.