1. Download Ocra-1.3.1.gem file
2. Open the "Start command prompt with Ruby" Command Window
3. Enter "Gem install e:\ocra-1.3.1.gem-l" Installation Gem,#=> "successfully installed ocra-1.3.1"
4, enter "D:\>ocra youruby.rb" to start packaging, #=> "finished building YouRuby.exe"
After packaging, you will generate a ruby icon "YouRuby.exe" execution file in the D:\ root directory, which can be executed on a computer that does not have a ruby environment, and should be packaged with the necessary environment files.
= = = Building YouRuby.exe
= = = Adding user-supplied source files
= = = Adding Ruby executable Ruby.exe
= = = Adding detected DLL c:/ruby193/bin/libffi-6.dll
= = = Adding detected DLL c:/ruby193/bin/libyaml-0-2.dll
= = = Adding detected DLL c:/ruby193/bin/zlib1.dll
= = = Adding Library files
= = = Compressing 8476770 bytes
= = = Finished building YouRuby.exe (1773606 bytes)
ruby-Packaging Program