Compile ruby code to exe


















Please file an issue here if this occurs. Once your toolchain is set up run bundle. To compile your own rubyc run:. This will produce a single rubyc executable, which can be put inside any of your PATH locations, so that it can be directly called from the command prompt. For example:. Remember that rubyc includes all the files from the current directory in the built executable. You must delete the prior rubyc or your squashfs will continually grow larger and the embedded squashfs compile time will be very, very long.

Minqi Pan et al. Skip to content. Star 1. Packing your Ruby application into a single executable. MIT License. Branches Tags. Could not load branches. Could not load tags. Standard Input: Interactive Console Text. Program is not being debugged.

Call Stack. Function File:Line. Local Variables. Variable Value. Register Value. Display Expressions. Expression Value. Breakpoints and Watchpoints. If your program is reading input from standard input and you forgot to provide input via stdin. Is it possible to compile a ruby script into an.

Obviously there must be some way to get rubygems paths to be included in the exy? I made some progress with Exerb, I found out you can run mkexy with the -rrubygems option to pull this in. I've tried it for a few ruby scripts that use a number of different libraries without problems. For example:.

Unfortunately, it doesn't work for watir. When I run an. I think I found the answer! Checking line it looks like it formats it incorrectly. I corrected it to:. And now it works. When I run it I still get the message about the "user is bewildered". The solution to this is to add:. Next there are still a few missing libraries that exerb is not adding. I haven't figured out yet how to make them appear but you can just copy them to the exe's path and it works.

It becomes a kb file! No script I could make with ocra was less than 1Mb. Not to mention the fact that it's really buggy and leaves. I think with some tweaking of the. I'll update this question with the answer if I find it. According to the Ocra documentation, you can prevent your app from running during ocra compilation by checking the Ocra constant:. Ruby is so light-weight that I never minded installing it on another system.



0コメント

  • 1000 / 1000