Re: Use XPInstall to install plugins on diffrent platforms !
Karsten Düsterloh <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xpinstall |
|---|---|
| Organization | http://tprac.de/ |
| Message-ID | <[email protected]> |
Benjamin D. Smedberg aber hob zu reden an und schrieb:
>> I want to use XPInstall for installing my browser plugin. But my plugin is
>> available for win32 also for unix (irix, aix, linux).
>>
>> How I can differ inside install.js between the platforms ? Yes, I know, XP
>> stands for "Cross-Platform" !
>
> Start with this function:
>
> http://lxr.mozilla.org/mozilla/source/xpinstall/packager/common/share.t#61
>
> Right now it has a generic win/mac/unix detection, but it probably
> wouldn't be that hard to expand the platform check to distinguish
> between irix/aix/linux.
Apart from that, you can pass a parameter array to your install.js, see
http://www.mozdev.org/source/browse/mnenhy/src/bin/install.js?rev=1.28
Karsten
--
Freiheit stirbt | Fsayannes SF&F-Bibliothek:
Mit Sicherheit | http://fsayanne.tprac.de/