Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Package Ruby to a standalone Mac OS X application?

Tags:

macos

ruby

I know Python has py2app. I was wondering if Ruby has anything like that. I know there is OCRA (One-Click Ruby Application builder) for Windows, but what about for Mac OS X?

like image 385
bunnyBEARZ Avatar asked Mar 20 '10 19:03

bunnyBEARZ


2 Answers

Take a look at Platypus; it may do what you want.

From its homepage:

Platypus is a developer tool for the Mac OS X operating system. It can be used to create native, flawlessly integrated Mac OS X applications from interpreted scripts such as shell scripts or Perl and Python programs. This is done by wrapping the script in an application bundle directory structure along with an executable binary that runs the script.

Edit per @XtraSimplicity in a comment: Platypus can't handle any input or output from stdin or stdout. That will rule it out in some cases.

like image 74
Telemachus Avatar answered Nov 03 '22 23:11

Telemachus


MacRuby seems like the most likely candidate without knowing more details about what you're doing. It can make standalone native binaries.

http://www.macruby.org/ for more info.

like image 45
durin42 Avatar answered Nov 03 '22 22:11

durin42