Package Ruby to a Standalone MAC Os X Application

How to package and release a Ruby application?

In Ruby any lib/application called gem and should be installed via rubygems. Read how make your own gem. This all what you need.

It is contain section about adding executable

Deploying Ruby-Tk app on OS X

This is a bit late after the fact, but in classic fashion, since I could not find a desktop app deployment tool for Ruby-Tk on the Mac, I wrote my own:

ruby2app

ruby2app is a simple command-line tool, inspired by similar Mac tools like py2app for Python, that bundles a Ruby script with the Ruby runtime into a standalone Mac application. It reads a basic configuration file to find the appropriate Ruby installation, compiles a small C program that embeds the Ruby interpreter, copies the entire Ruby installation into the application bundle, and re-links the relevant libraries with the main executable.

It attempts to provide for the Mac what ocra and exerb provide for Windows. Hopefully this will be of use to others.

Install Ruby 2.0.0 on an old Mac OS 10.7.5 Lion

Homebrew doesn’t support macOS 10.7. You can use Tigerbrew, a fork of Homebrew "that adds support for PowerPC Macs, and Macs running Tiger or Leopard" (quoting its homepage).

Use non-system ruby to execute ruby scripts within macOS App

Due to Martin R's help I was able to solve the issue.
For now I deactivated macOS sandboxing in the projects capabilities.

Now I can use any ruby I want.

Thank you



Related Topics



Leave a reply



Submit