This program is free software you can redistribute it and/or modify it under the terms of the GNU General Public License (GPL), version 2, as published by the Free Software Foundation. I ran AllInOneRuby with four different Ruby distributions (Ruby 1.8.1) on Windows and two version of Ruby (1.6.7 and 1.8.2) on Linux:ĪllInOneRuby, Copyright (C) 2003 Erik Veenstra AllInOneRuby c:\home\erik> ruby allinoneruby.rb Temporary directory in which the application resides.Ĥ. In your application, you can access some information about the environment EEE sets up before spawning your application:Įee.exe or eeew.exe or eee_linux or eee_darwin. If the application is not run by AllInOneRuby, this will return nil. The application can detect whether it is run by AllInOneRuby or not with defined?(ALLINONERUBY) (which is set to ruby, ruby.exe or rubyw.exe). The exit code of the executable is the same as the exit code of script.rb. To be forward compatible, all parameters starting with -eee- will be deleted before the execution of script.rb. If none of these parameters is used, AllInOneRuby executes script.rb with the given parameters. If one of these parameters is used, AllInOneRuby does just that. Just extract the original files from the executable into the current directory (no subdirectory!). (Doesn't work in combination with rubyw.) Just show the information stored in the executable. Just list the contents of the executable. exe: c:\home\erik> allinoneruby.exe script.rb Ĭ:\home\erik> allinoneruby.exe -e ' statements' On Linux and Darwin, there's no difference between ruby and rubyw. The binaries ( ruby and *.so) on Linux and Darwin are stripped by default to reduce the size of the resulting executable. Include all files in Config::CONFIG as well.Īvoid stripping. If you installed the gem, it's: c:\home\erik> allinoneruby įorce the popping up of a DOS box (default). If you use the original allinoneruby.rb, use this to create allinoneruby. The files in Config::CONFIG are completely ignored, because (strictly spoken) they are not part of Ruby. EEE was originally written as part of RubyScript2Exe. Finally, these directories ( bin/ and lib/) are compressed and packed with EEE.The dll's (determined recursively in the directory Config::CONFIG) of the so's it encounters are copied to bin/. All subdirectories in the directory Config::CONFIG that are part of Config::CONFIG are recursively copied to the directory lib/.The files ruby.exe, rubyw.exe and their dll's (determined recursively) in the directory Config::CONFIG are copied to the directory bin/.In other words: the executable, generated with RubyScript2Exe, is an application the one generated with AllInOneRuby "is" Ruby. You can use allinoneruby.exe like ruby.exe (Windows) and allinoneruby_* like ruby (Linux, Darwin) that's already installed on your system. AllInOneRuby contains a complete Ruby installation: it includes no application, but it does include the Ruby VM and the complete rubylib tree. What's the difference between RubyScript2Exe and AllInOneRuby? Well, RubyScript2Exe includes an application (your script), the Ruby VM and only parts of the rubylib tree (it's stripped specifically for that application). But the generated exe under Cygwin is very, very big, because its exe's are very big (static?) and it includes cygwin1.dll, so it can run on machines without Cygwin. No cross compile.Īnd when I say Windows, I mean both Windows (RubyInstaller, MinGW and MSWin32) and Cygwin. I always have a USB-memory stick with AllInOneRuby in my pocket.Ī "just-in-time and temporary installation of Ruby".īecause of the gathering of files from your own Ruby installation, AllInOneRuby creates an executable for the platform it's being run on. Why? Because it's sometimes not easy, or possible, or desirable, or allowed to do a complete Ruby installation. Well, not anymore!ĪllInOneRuby creates a compressed executable for Windows, Linux or Mac OS X (Darwin) that includes both the Ruby interpreter and the runtime libraries. AllInOneRuby A "Just-in-Time and Temporary Installation of Ruby"Īs you know, Ruby has to be installed, either by unzipping a ZIP-file, or by running an installer.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |