jazzez ravi wrote:
I have a ruby script. i converted it into exe with the help of
I want to run all the Operating systems. is this possible ?
(I hope some gems will be available)
So there is no way to do that …?
It might be your English… I mean no offense, it’s just difficult to
understand. Do you mean, you want to create a single executable for each
operating system Ruby runs on? So I can just download your program on OS
X, or on Linux, without having Ruby installed?
Mostly there’s no need. Worse, it’s a bad idea, and will probably make
your users hate you.
Let me put it this way: Suppose your app is a few hundred kilobytes. My
current installation of Ruby is at least five and a half megabytes
(probably more), and that’s not counting any rubygems you include. My
current Rubygems folder is over six hundred megabytes.
So, what would be a few seconds, or near instantaneous, is now several
minutes or hours. But I already have Ruby installed, and probably many
of the gems I would need, so it’s a complete waste.
If you want to distribute your app in the friendliest way, that makes it
easiest for users of any OS to install it, build a gem. There’s a
reasonably easy way to install Ruby and Rubygems on any OS, and once
that’s there, it’s easy to install your gem.
It’s also possible I misread, and you actually want a single .exe file
which can run on all operating systems – also, presumably, without
asking your users to install anything first. That is impossible – those
files are for Windows only, except the .NET ones, and only Windows comes
with .NET out of the box.