[ANN] RubyScript2Exe 0.4.3

E

Erik Veenstra

I just released RubyScript2Exe 0.4.3.

RubyScript2Exe transforms your Ruby script into a standalone,
compressed Windows, Linux or Mac OS X (Darwin) executable. You
can look at it as a "compiler". Not in the sense of a
source-code-to-byte-code compiler, but as a "collector", for it
collects all necessary files to run your script on an other
machine: the Ruby script, the Ruby interpreter and the Ruby
runtime library (stripped down for this script). Anyway, the
result is the same: a standalone executable (application.exe).
And that's what we want!

More information and download on:
http://www.erikveen.dds.nl/rubyscript2exe/index.html

gegroet,
Erik V. - http://www.erikveen.dds.nl/

----------------------------------------------------------------

CHANGES:

* Enhanced the support for RubyGems, again... I now use the
real RubyGems, instead of a fake one.

----------------------------------------------------------------
 
G

Glaucio Melo

whats the size of this application.exe?? Is it too big?

King regards..

Glaucio.
 
E

Erik Veenstra

whats the size of this application.exe?? Is it too big?

_too_ big? That depends on your limit...

A typical hello world program is about 700K, using Ruby 1.8.2
on Windows. This gets bigger if your application uses more
libraries. Especially graphics libraries are expensive...

Is that _too_ big?... ;]

gegroet,
Erik V. - http://www.erikveen.dds.nl/

----------------------------------------------------------------

S:\> ruby -v
ruby 1.8.2 (2004-12-25) [i386-mswin32]

S:\> echo p :eek:k > test.rb

S:\> ruby rubyscript2exe.rb test.rb
Tracing test ...
:eek:k
Gathering files...
Copying files...
Creating test.exe ...

S:\> test.exe
:eek:k

S:\> dir test.exe
De volumenaam van station S is qemu
Het volumenummer is AF0C-02A7

Map van S:\

27-06-2006 20:42 696.579 test.exe
1 bestand(en) 696.579 bytes
0 map(pen) 6.440.615.936 bytes beschikbaar

----------------------------------------------------------------
 
U

Une bévue

Erik Veenstra said:
RubyScript2Exe transforms your Ruby script into a standalone,
compressed Windows, Linux or Mac OS X (Darwin) executable.

i'm using MacOS X and i wonder if any one did, successfully, build a
RubyCocoa* app with RubyScript2Exe ???

that's to say embeding :

the RubyCocoa framework

and also RubyAEOSA for applescripting.
 
U

Une bévue

Une bévue said:
i'm using MacOS X and i wonder if any one did, successfully, build a
RubyCocoa* app with RubyScript2Exe ???

that's to say embeding :

the RubyCocoa framework

and also RubyAEOSA for applescripting.

I did a first test with that kind of prob :

/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require__': no such file to load -- generate_yaml_index.rb (LoadError)

because of a :

require 'yaml'

in a rb file

any workover ?

and, if i want to launch this app, i get :
./MacSOUPSwitcher_darwin
/tmp/eee.MacSOUPSwitcher_darwin.2/bootstrap.rb:39:in `delete': wrong
number of arguments (0 for 1) (ArgumentError)
from /tmp/eee.MacSOUPSwitcher_darwin.2/bootstrap.rb:39
from /tmp/eee.MacSOUPSwitcher_darwin.2/bootstrap.rb:38


getting info about this app :
./MacSOUPSwitcher_darwin --eee-info
APPNAME : MacSOUPSwitcher_darwin
NUMBER OF ITEMS : 72
LENGTH OF GZ-FILE : 2559588
EEEEXE : eee_darwin
TEMPDIR :






PS : it seems that both RubyAEOSA and RubyCocoa have been included in
the embeded app "MacSOUPSwitcher_darwin"

following :
ruby ~/bin/rubyscript2exe.rb --rubyscript2exe-verbose MacSOUPSwitcher
Tracing MacSOUPSwitcher ...
Gathering files...
Found /opt/local/lib/ruby/site_ruby/1.8/rubygems.rb .
Found /opt/local/lib/ruby/1.8/powerpc-darwin8.5.0/rbconfig.rb .
[...]
Found /opt/local/lib/ruby/1.8/openssl.rb .
Found /opt/local/lib/ruby/1.8/powerpc-darwin8.5.0/openssl.bundle .
[...]
Found /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb .
Found /tmp/tar2rubyscript.d.11131.1/rubyscript2exe/ev/ftools.rb .
Found /opt/local/lib/ruby/1.8/ftools.rb .
###################
# => rubyCocoa and dep
###################
Found
/Library/Frameworks/RubyCocoa.framework/Versions/A/Resources/ruby/osx/co
coa.rb .
###################
# => aeosa and dep
###################
Found /opt/local/lib/ruby/site_ruby/1.8/osx/aeosa.rb .
[...]
Found /opt/local/lib/ruby/1.8/powerpc-darwin8.5.0/nkf.bundle .
Not all required files are pure Ruby.
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require__': no such file to load -- generate_yaml_index.rb (LoadError)
from
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require'
from MacSOUPSwitcher.rb:16:in `rb_main_init'
from MacSOUPSwitcher.rb:15:in `rb_main_init'
from MacSOUPSwitcher.rb:21
Copying files...
Copying /opt/local/bin/ruby ...
Copying /opt/local/lib/libruby.dylib ...
Copying /usr/lib/libSystem.B.dylib ...
Copying /usr/lib/libauto.dylib ...
Copying /usr/lib/libobjc.A.dylib ...
Copying /usr/lib/system/libmathCommon.A.dylib ...
Copying
/Users/yvon/work/RubyCocoa/MacSOUPSwitcher/build/Development/MacSOUPSwit
cher.app/Contents/Resources/MacSOUPSwitcher.rb ...
Stripping...
Creating MacSOUPSwitcher_darwin ...
 
E

Erik Veenstra

Stupid question: the web site suggests using both
Tar2RubyScript and RubyScript2Exe together. Does this mean
that RubyScript2Exe by itself is not capable of handling Ruby
programs made up of multiple files?

True. The next big thing on my list is to be able to do a
"rubyscript2exe dir/", which transforms not only the script,
but the whole application.

gegroet,
Erik V. - http://www.erikveen.dds.nl/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top