gosu / ruby-app

macOS app that contains a full Ruby installation (for use with Ruby/Gosu)
47 stars 6 forks source link

Ruby.app

Application wrapper to deploy Ruby apps on macOS using MRI/C Ruby, not MacRuby or JRuby. So far, it has only been used to release Ruby/Gosu games. It can probably be adapted to wrap applications or games written in other toolkits.

The idea is that Ruby.app contains a full, universal Ruby installation. All you have to do is provide a main.rb file inside the Ruby.app/Contents/Resources/ folder that starts your game/application.

Alternatives

Why not RubyMotion?

The short answer is that this project is much older than RubyMotion. It is also free, and behaves the same as ‘MRI’ Ruby on the command-line.

Why not use the Ruby that comes with macOS, or Platypus?

The first version of Ruby.app simply ran the user-supplied main.rb file using system Ruby (/usr/bin/ruby). This is also what Platypus does. However,

Build process

Known issues

The extensions for OpenSSL and YAML will have unportable dependencies on /opt/homebrew ([https://github.com/gosu/ruby-app/issues/8](see issue #8 on GitHub)).

License

Everything in this repository has been released under the MIT license. As for the Ruby installation that is contained in binary builds of the Ruby.app, please see the licenses for Ruby and its standard library.