Skip to content

Create executable

Florian Bergmann edited this page Jan 20, 2021 · 8 revisions

Create an executable application

First step install ocra gem.

To create an exe of game with robert.ico

  • open a command line on root of project
ocra game.rb --dll ruby_builtin_dlls/libssp-0.dll --dll ruby_builtin_dlls/libgmp-10.dll --dll ruby_builtin_dlls/libgcc_s_seh-1.dll --dll ruby_builtin_dlls/libwinpthread-1.dll --icon robert.ico --windows
  • the argument --windows force to show only the window of application

How to share your executable

To share the program, you have to give to users the following folders with your executables :

  • core
  • mycodes
  • MyFunctions
  • MyMaps

example of requirement

example with only game

Resolve Errors

if you have an error with mini_portal2 gem,
you have to remove yours gems, because mini_portal2 has many versions. mini_portal2 is linked some gem. you have to uninstall your gems with the command:
gem uninstall --all
After uninstall, reinstall gosu, ocra, fxruby and retry the intallation.

Clone this wiki locally