Building a Windows executable from my Ruby app?

前端 未结 5 558
误落风尘
误落风尘 2021-01-31 10:42

I\'d like to be able to send a Ruby app to some colleagues without requiring them to install a Ruby interpreter. A single exe would be preferable.

I googled and found \"

5条回答
  •  不思量自难忘°
    2021-01-31 11:03

    Sorry to be late to the party, but I found this question in my search for trying to do this myself (starting to use SO more and more as a primary resource).

    Anyway, I have just had success with exerb, although I'd add a couple of notes:

    • The web page says exerb runs on any platform. That is true; however if you "compile" a program calls out to native code, then exerb will embed your system's native code (e.g. Linux .so files) into the .exe. In practice, that means you have to build any significant app on Windows.
    • The web page also says ruby -r exerb/mkrbc but the actual command is ruby -r exerb/mkexy.

提交回复
热议问题