Star Ruby Ruby extension library for creating 2D games

Publish your game (Windows)

By using Exerb you can distribute your game as an exe file. The exe file can be executed on machines that have no Ruby installed.

Install Exerb

Please install Exerb. Type this command after you decompressed the file.

>ruby setup.rb

Check the site of Exerb for details.

Make a recipe file

To make the exe file, you first need to create a "recipe" file which stores the information needed to make the exe.

Call the command below in the command prompt

>mkexy (Script file name)

The recipe file (the extension is .exy) will be generated.

Be careful if the path contains multi-byte characters as it may fail.

Make exe file

Call the command below in the command prompt

>exerb (recipe file name) -cguirt -kUTF8

To execute the exe file you need the dll file of Exerb in the same directory as the exe ( copy "(ruby's directory)\share\exerb" "exerb(version no).dll e.g. exerb43.dll ). It is possible to run the exe without the dll, however there is a possibility that the security software misregards it as a virus file.

Required files

When you distribute your game, you need to include these files:

All dll files have to be in the same directory as the exe file.

Game scripte files (*.rb) and starruby.so files are not needed when you distribute.

(We are currently working on the feature to pack image files)

© Copyright 2012 Hajime Hoshi