On Oct 19, 2007, at 04:23 , Daniel Berger wrote:

> Hi all,
>
> Ok, I've lost track. What's the "proper" way to distribute separate  
> gems
> for MS Windows (or any platform really) where one is for users who  
> want
> to build from source vs those who just want a prebuilt binary?
>
> I'm curious because for the win32-api library I have two gems - one
> that's source only (win32-api-1.0.3.gem), the other is a prebundled
> binary (win32-api-1.0.3-mswin32.gem). With the latest beta when I do
> "gem install win32-api" it never gives me a choice - it just grabs the
> binary gem.
>
> Any ideas and/or suggestions?

gem install win32-api --platform ruby

One gem should be built with Gem::Platform::CURRENT, the other with  
Gem::Platform::RUBY (the default).  If you have it set to the old  
platforms (Gem::Platform::WIN32) and try to build, it should complain  
and refuse to build the gem.

--
Poor workers blame their tools. Good workers build better tools. The
best workers get their tools to do the work for them. -- Syndicate Wars


_______________________________________________
Rubygems-developers mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rubygems-developers

Reply via email to