Ocra is a ruby gem "transforming" ruby files source code to a .exe file, so any user without ruby installed can launch the program with that generated file.
I'm creating a game editor, so I need a way to create an executable when the user wants to.
- I have ocra installed on my computer
- An user don't have ruby or ocra installed on their computer
- I created a .exe with "ocra program.rbw" command for my program .exe
- But in my source code, I got the line exec("ocra game.rbw") that can't work in the user's computer because he doesn't have ocra gem installed. Exept that line, all is working well.
Well, here is my question, how can I use ocra command without telling the user to install that gem ? A kind of require (require 'ocra' is not working), or another way to create an executable.