Creating an executable file from a Ruby program

I wrote a program in Ruby, but I want to make an executable from my program to run it on any computers (they don't have ruby). How can I create an executable file? thanks

+4
source share
3 answers

You can use RubyScript2Exe

http://www.erikveen.dds.nl/rubyscript2exe/

.. it collects all the necessary files to run your application on another computer: the Ruby application, the Ruby interpreter, and the Ruby runtime library (removed for your application)

+6
source

You should look at this list of options, considering your needs:

http://ruby-toolbox.com/categories/packaging_to_executables.html

Everyone has their own strengths and weaknesses. NOTE. I have not used any of them.

+1
source

Take a look at rb2exe . It supports Rails and Gemfile.

gem install rb2exe echo "puts 'Hello world'" > test.rb rb2exe test.rb ./test 

You can also check my detailed step-by-step instructions here: http://www.learnwithdaniel.com/2016/08/ruby-to-portable-exe-app/

0
source

Source: https://habr.com/ru/post/1369024/


All Articles