[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

[ANN] RubyScript2Exe 0.4.3

Erik Veenstra

6/27/2006 7:24:00 PM

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.erikve...rubyscript2exe/...

gegroet,
Erik V. - http://www.erikve...

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

CHANGES:

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

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

10 Answers

Glaucio Melo

6/27/2006 7:30:00 PM

0

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

King regards..

Glaucio.


Erik Veenstra wrote:
> 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.erikve...rubyscript2exe/...
>
> gegroet,
> Erik V. - http://www.erikve...
>
> ----------------------------------------------------------------
>
> CHANGES:
>
> * Enhanced the support for RubyGems, again... I now use the
> real RubyGems, instead of a fake one.
>
> ----------------------------------------------------------------

greg.kujawa

6/27/2006 7:47:00 PM

0

That would depend on what libraries your script requires...

Glaucio Melo wrote:
> whats the size of this application.exe?? Is it too big?
>
> King regards..
>
> Glaucio.
>
>
> Erik Veenstra wrote:
> > 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.erikve...rubyscript2exe/...
> >
> > gegroet,
> > Erik V. - http://www.erikve...
> >
> > ----------------------------------------------------------------
> >
> > CHANGES:
> >
> > * Enhanced the support for RubyGems, again... I now use the
> > real RubyGems, instead of a fake one.
> >
> > ----------------------------------------------------------------

Erik Veenstra

6/27/2006 7:49:00 PM

0

> 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.erikve...

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

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

S:\> echo p :ok > test.rb

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

S:\> test.exe
:ok

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

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

pere.noel

6/28/2006 7:03:00 AM

0

Erik Veenstra <erikveen@gmail.com> wrote:

> 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.
--
une bévue

pere.noel

6/28/2006 7:45:00 AM

0

Une bévue <pere.noel@laponie.com.invalid> wrote:

>
> 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 ...


--
une bévue

Erik Veenstra

6/28/2006 8:15:00 AM

0

> /tmp/eee.MacSOUPSwitcher_darwin.2/bootstrap.rb:39:in
> `delete': wrong number of arguments (0 for 1)

That's my fault... Sorry... I'll fix it tonight.

gegroet,
Erik V. - http://www.erikve...

pere.noel

6/28/2006 8:46:00 AM

0

Erik Veenstra <erikveen@gmail.com> wrote:

>
> That's my fault... Sorry... I'll fix it tonight.

OK fine !

thanks a lot for yout work !!!
--
une bévue

Erik Veenstra

6/28/2006 8:01:00 PM

0

> That's my fault... Sorry... I'll fix it tonight.

Done. It's version 0.4.4.

Sorry...

gegroet,
Erik V. - http://www.erikve...

Karl von Laudermann

6/29/2006 3:55:00 PM

0

Erik Veenstra wrote:
> I just released RubyScript2Exe 0.4.3.
>
> More information and download on:
> http://www.erikveen.dds.nl/rubyscript2exe/...

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?

Erik Veenstra

6/30/2006 7:18:00 AM

0

> 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.erikve...