What's new? | Help | Directory | Sign in
Google
gosu
Cross-platform 2D game development library
  
  
  
  
    
Search
for
Updated Nov 30, 2007 by julianraschke
RubyPackagingOnWindows  
How to wrap up Ruby/Gosu games for deployment on Microsoft Windows.

Ruby/Gosu Packaging on Microsoft Windows

To compile your Ruby game into an executable on Windows, you need to run it through the following program from the command line:

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

You can then ship the resulting .exe file together with your game's resources and, if you use sound, fmod.dll. (If you are using Gosu as a Ruby Gem, you can find fmod.dll in your gems directory, usually C:\ruby\lib\ruby\gems\1.8\gems\gosu-x.x.x\lib\fmod.dll).

If you want to ship your game to be in a self-contained executable (similar to the .app bundle on Mac OS X), Erik Veenstra also has a guide to packaging a whole directory into a single .rb file.

http://www.erikveen.dds.nl/distributingrubyapplications/index.html

With a bit of experimentation, you can fit the whole game, including all resources, .dll's and even gosu.so into a single .exe file. Note that for licensing reasons, you should point out you are using FMOD then, as it cannot be seen from your game's files anymore.


Sign in to add a comment