Whats the best way to package deploy a Ruby app to windows? (no UI, also standalone if possible)

Hi,

Whats the best way to package deploy a Ruby app to windows??? (no UI,
also standalone if possible)

In other words a tools I can create a normal windows installation
package, or self extracting package, so that non-techo’s who get the
installation can run it in seemlessly. Would need to be stand alone
(i.e. no requirement for them to have installed Ruby themselves).

Thanks

2009/9/15 Greg H. [email protected]:

Thanks

PS. In fact I am interested in the same question for Windows & Mac so
thought I could point that out. Would be great if there was a tool
that spat out both installation packages at the same time.

Greg H. wrote:

Hi,

Whats the best way to package deploy a Ruby app to windows??? (no UI,
also standalone if possible)

In other words a tools I can create a normal windows installation
package, or self extracting package, so that non-techo’s who get the
installation can run it in seemlessly. Would need to be stand alone
(i.e. no requirement for them to have installed Ruby themselves).

Thanks

But this would defy the point of an interpretive language o_O

If deploying is something your interested in, consider a compiled
language?

Regards,

  • Mac

Well, regardless of whether or not I think it’s a good idea, I’ll throw
an idea out for you:

unpack the ruby installation and change the environment path to “.”
(current directory).

Should be able to use the entire library that way however this is a
terrible approach. This means you have to move the entire ruby library
around just to have someone use the program (which may be only 200kb for
the program, but then you have to lug around all the libs, resourcefully
expensive).

Regards,

  • Mac

On Tuesday, September 15, 2009, Luis L. [email protected]
wrote:

(i.e. no requirement for them to have installed Ruby themselves).

thanks Luis - what about support for installing the ruby script as a
service?

you can also use JRuby and stick the whole thing in a jar …

or JRuby + rawr , which can give you Windows binaries , and Linux
binaries

http://rubyforge.org/projects/rawr/

You can use win32Utils if using Ruby MRI:

http://win32utils.rubyforge.org/

or use a Java service wrapper if using JRuby …

On Mon, Sep 14, 2009 at 6:31 PM, Greg H. <

On Sep 14, 11:00 pm, Greg H. [email protected]
wrote:

Hi,

Whats the best way to package deploy a Ruby app to windows??? (no UI,
also standalone if possible)

In other words a tools I can create a normal windows installation
package, or self extracting package, so that non-techo’s who get the
installation can run it in seemlessly. Would need to be stand alone
(i.e. no requirement for them to have installed Ruby themselves).

Wrap your program/script around Ocra:

http://ocra.rubyforge.org/

Install the gem, and the execute your script with ocra.

HTH,

On Sep 14, 5:00 pm, Greg H. [email protected]
wrote:

Thanks
Ruby2EXE might be what you are looking for. It allows for multi-
platform executables. Run a search on the Internet you may find more
current documentation. When I used for some windows stuff it worked
well for me, once I wrapped my head around it. Also be aware that
you’ll be adding the overhead of the Ruby engine to every script.
Depending on the size and number of scripts you are working with you
may find it isn’t suitable for your needs.

http://www.erikveen.dds.nl/rubyscript2exe/

CParticle

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs