I guess I will have to live with 2 separate versions.

Thanks for your response.

-Amit

Benjamin D. Smedberg wrote:
Amit Sharma wrote:

Hi,

I have written a firefox extension that comes with an xpcom component. I compiled and built a dll for windows and a .so for unix platforms.

I would like to distribut the same xpi for both windows and unix. I was hoping that if I placed both the dll and the .so in the components directory it would just work.

It works just fine on Linux, but on windows everytime firefox is launched it throws an alert suggesting the "xyz.so is not a valid windows file blah.."

I would appreciate any pointers, it seems that there should be a way to do this but for once google came short. ;)


At the present time there is not a good way to do this. I hope in future releases to have some sort of platform-specific components process, but it's not easy to implement.

I'm surprised that windows is trying to load the .so, though... hrm. cc'ing npm.xpcom for thoughts there

--BDS
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to