Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Ruby Q's

Hey guys.

i've been wondering for a while now. How on earth can i build ruby so it is just a single .exe

and mabye hopefulkly get rid of that annoying command prompt window? if you need to know, im using Gosu at the moment.

thanks.

Also, does anyone know where i can get a freww Ruby IDE.. that doesnt need VS2008.. thanks again.
 
Rubyscript2exe works like a charm, as long as your ruby application is conform to the ruby standards and contains no error.
The command line I'm usually using is

c:\rubyscript2exe my_app.rb

without any other arguments, and it works very well. The only thing that annoys me is the DOS Prompt that pops up every time I launch the exe. I don't know how to get rid of that.
 
well i know how to get rid of that i hear its something like

ruby rubyscript2exe.rb my_app.rb -w

or something, i was reading it last night. :thumb:

thanks guys, ill test it when i get home
 
You can use:
Code:
rubyscript2exe  my_app.rb --rubyscript2exe-rubyw
or just
Code:
rubyscript2exe  my_app.rbw
if you saved your primary application as a windowless ruby file (*.rbw)
 
you can try exerb too.
is what i use to pack my games and apps into single .exes, exerb generates a yaml file so you can choose what include and what no include into your exe.

Have gui mode with error output in a cool window but some antivirus detects the gui core like troyan, anyway you can use the normal core.

gem install exerb

How to pack:
http://lylejohnson.name/blog/2008/12/30 ... ith-exerb/
 
I suggest Ocra :) which works like a charm with both versions of ruby and the latest rubygem version, instead of ruby2exe. Also Ocra generates smaller exe files.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top