The following text is something like “what I’d want to see”. I’m going
this by myself… I’m going… some time.
So, if somebody would be impressed enough to do this by himself, I would
no word against.
Obtain Windows executable (.exe) file from my Ruby script. I mean not to
pack all-all-all files and libraries into one huge file, but something
…and so on…
Not for obfuscation purposes.
Just to deploy my application to other computers without Ruby installed.
Why not .bat?
Of course, I can deploy ruby.exe, all *.so’s, my-cool-app.rb and run.bat
with command “ruby my-cool-app.rb”.
Bu I want .exe just for neatness. For Windows users only .exe programs
“first-class” ones, when batch scripts (.bat or .cmd) looks like
Why not RubyScript2Exe?
As far as I undrestand, .exe files created by RubyScript2Exe, are
dynamically unpacked to temporary folders, the way I personally dislike
(there are many possible problems).
Suppose we have my-cool-app.rb, which uses some-library.rb and
Desired result would be:
msvcr71-ruby19.dll <-- or other DLL for other rubies
Here my-cool-app.exe is ruby interperter + all *.rb files IN RESOURCES.
main() function inside my-cool-app.exe extracts my-cool-app.rb text from
resources and gives it to interpreter; also Kernel.require modified so
libraries from exe resources can be require’d.
Sounds reasonable, ha?
Thanks. And sorry for my English.