Showing posts with label exerb. Show all posts
Showing posts with label exerb. Show all posts

2009-09-18

Creating Windows Exe

Just to note that I have migrated to using OCRA for packaging Ruby.  It is a bit slow unpacking and starting compared to EXERB but is more widely supported.  I had a problem packaging Watir which was resolved with OCRA.  It works really nicely and will work with Ruby 1.9. 

I used to use rubyscript2exe but that has ossified although it had wonderful documentation.

2009-09-03

Exerb Command reference for Ruby translated from Japanese by Google and tidied by me

Exerb Project 4.20

Welcome to "Command Reference

Command Reference

Contents

  1. Overview
  2. command exerb
    1. Parameters
    2. Options
  3. command mkexy
    1. Parameters
    2. Options

1. Overview

Exerb to include two single command. Exerb command to generate an executable file to generate a recipe file mkexy command.

2. Exerb command

Ruby script file, or specify a recipe file to generate an executable file.

exerb [option] (Ruby script file | files) recipe

1. Parameter

Ruby script to specify a file name or recipe. Can not specify multiple file names. The file name extension "rb" as if the Ruby script file, otherwise it is treated as a recipe file.

Ruby script file is specified, Ruby will generate an executable file that contains only the script. Ruby single software consists of a simple script that will be used to convert the executable.

Recipe file is specified, the executable file is generated according to the information contained in the recipe. Multiple Ruby script, a software library that consists of extended and used to convert the executable. File formats Recipes Reference, please refer to the recipe.

2. Options

You can specify the following options. If the same item at the specified recipe file and command options, command option will take precedence.

Options
Description

-c
-- corename
Specifies the name defined in the core. If -C option is specified at the same time,-C is the preferred option.

-C
-- corefile
Specifies the core file path.  -c option is specified at the same time,-C is the preferred option.

-o
-- outfile
Specifies the output file name.

-k
-- kcode
Specifies the character code. none, euc, sjis, utf8 Please specify one of them.

-a -a
--archive
Generates only archive. Executable file is not generated.

-v -v
-- verbose
Redundant information to display.

-e -e
-- execute
Run the executable file generated.

-i
-- config
Displays various settings.

-V
-- version
Displays version information.

-h
-- help
Displays the help message.

3. Mkexy command

Ruby is running the script automatically generates a recipe file. Please start one of the following ways.

mkexy [option] Ruby Script File Parameters

ruby-r exerb / mkexy [option] Ruby Script File Parameters

1. Parameter

"Ruby script file" in the recipe file is generated for the specified Ruby script. Ruby is running the specified script file is generated at the end of recipes.

"Parameters" in the recipe file to be created to specify the arguments passed to the Ruby script.

2. Options

Will ruby option to accept commands.

Copyright (C) 2001-2006 All rights reserved.

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.