2009-09-03

Creating Ruby exes using FX ruby

Just wanted to note this post for creating a single exe.  First using exerb  http://lylejohnson.name/blog/2008/12/30/building-standalone-fxruby-applications-with-exerb/  I tried withrubyscript2exe but something went wrong and I just quickly tried exerb.  This worked although the exe files are huge at 9MB.

The key part is

1) creating the recipe file .exy

ruby -r exerb/mkexy hello2.rb

2) Converting the recipe file to an .exe

exerb hello2.rb

I ran into a problem with gruff as it seemed to have too many files.  I am trying to work out a solution.

Part of the block looked like this:

RMagick.rb:
  file: c:/ruby/lib/ruby/gems/1.8/gems/rmagick-2.9.0-x86-mswin32/lib/RMagick.rb
c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/deprecated.rb:
c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/base.rb:
c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/area.rb:
c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/bar_conversion.rb:
c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/bar.rb:
c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/line.rb:
c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/pie.rb:
c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/spider.rb:
c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/net.rb:
c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/stacked_mixin.rb:
c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/stacked_area.rb:
c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/stacked_bar.rb:
c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/side_bar.rb:
c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/side_stacked_bar.rb:
c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/a_b.rb:
c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/accumulator_bar.rb:
c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/scene.rb:
c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/mini/legend.rb:
c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/mini/bar.rb:
c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/mini/pie.rb:
c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/mini/side_bar.rb:
gruff.rb:
  file: c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff.rb

 

and I converted it to:

RMagick.rb:
   file: c:/ruby/lib/ruby/gems/1.8/gems/rmagick-2.9.0-x86-mswin32/lib/RMagick.rb
./gruff/deprecated.rb:
   file: c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/deprecated.rb
./gruff/base.rb:
   file: c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/base.rb
./gruff/area.rb:
   file: c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/area.rb
./gruff/bar_conversion.rb:
   file: c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/bar_conversion.rb
./gruff/bar.rb:
   file: c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/bar.rb
./gruff/line.rb:
   file: c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/line.rb
./gruff/pie.rb:
   file: c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/pie.rb
./gruff/spider.rb:
   file: c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/spider.rb
./gruff/net.rb:
   file: c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/net.rb
./gruff/stacked_mixin.rb:
   file: c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/stacked_mixin.rb
./gruff/stacked_area.rb:
   file: c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/stacked_area.rb
./gruff/stacked_bar.rb:
   file: c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/stacked_bar.rb
./gruff/side_bar.rb:
   file: c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/side_bar.rb
./gruff/side_stacked_bar.rb:
   file: c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/side_stacked_bar.rb
./gruff/accumulator_bar.rb:
   file: c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/accumulator_bar.rb
./gruff/scene.rb:
   file: c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/scene.rb
./gruff/mini/legend.rb:
   file: c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/mini/legend.rb
./gruff/mini/bar.rb:
   file: c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/mini/bar.rb
./gruff/mini/pie.rb:
   file: c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/mini/pie.rb
./gruff/mini/side_bar.rb:
   file: c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff/mini/side_bar.rb
gruff.rb:
   file: c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.3.4/lib/gruff.rb

 

It is still missing some DLL's that are needed so I will have to package those up separately.

A longer more detailed post is required on this.

No comments: