Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Packagin An Xpi On A Mac, How?
szupie
post Jul 25 2006, 10:13 AM
Post #1


S.P.A.M.S.W.A.T.
Group Icon

Group: Members
Posts: 814
Joined: 22-January 05
From: San Antonio, Texas (No, I'm not dumb. I just moved here...)
Member No.: 2,284



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.
Go to the top of the page
 
+Quote Post
ethergeek
post Mar 9 2007, 06:03 PM
Post #2


Premium Member
Group Icon

Group: [HOSTED]
Posts: 393
Joined: 9-March 07
From: Tucson, AZ
Member No.: 20,794



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 smile.gif
Go to the top of the page
 
+Quote Post
iGuest
post Jan 28 2008, 03:44 AM
Post #3


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 0
Joined: 1-November 07
Member No.: 25,869



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
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics


 



- Lo-Fi Version Time is now: 12th October 2008 - 02:00 AM