I'm looking for a straightforward way to deploy a standalone Ruby-Tk
desktop app on MAc OS X. All existing options for deploying desktop Ruby
GUI apps on the Mac (e.g. standaloneify.rb) assume that you are using
RubyCocoa or MacRuby, and are tightly bound to Xcode/Interface Builder
project structure; or, alternatively, that you are wrapping a simple
script via Platypus (<a href="http://sveinbjorn.org/platypus" title="http://sveinbjorn.org/platypus">http://sveinbjorn.org/platypus</a>) that does not
involve deploying the entire Ruby runtime. None of the other existing
options that I've found--rubyscript2exe, ocra, crate--support the Mac
and/or support Ruby 1.9.
I'm hoping that someone can point me to a shell script or Ruby script
that does the following:
* Tracks all dependencies/gems in an app.
* Copies the Ruby interpreter and dependencies into an application bundle.
* Runs install_name_tool on the Ruby interpreter and all dylibs to make
them portable.
The application bundle can either be something created by Platypus, use
a Cocoa stub launcher, or even a shell script--I know how to handle
those. The problem I'm having is getting the Ruby runtime wrapped in a
portable way.
There's a rakefile at
<a href="http://weft-qda.rubyforge.org/svn/trunk/weft-qda/rake/rake_osx.rb" title="http://weft-qda.rubyforge.org/svn/trunk/weft-qda/rake/rake_osx.rb">http://weft-qda.rubyforge.org/svn/trunk/weft-qda/rake/rake_osx.rb</a> that
encompasses the tasks that I'm looking to achieve, but this rakefile is
part of a larger build structure that I can't get running on my Mac. I'm
not familiar enough with rakefile structure to refactor this into a
simple script that I can run, either via "ruby rake_osx.rb" or even "rake".
If someone can suggest to me how to modify this rakefile to run
independently, or point me to another example project, or even share
some code, I would be grateful. The project I am working on is better
suited for Ruby than Python (better library support in Ruby), but I am
not going to invest time in it if deployment won't work. (Python has a
much richer tradition of deployment tools than Ruby, something I've
never quite understood.)
Thank you,
Kevin
Comments
Re: Deploying Ruby-Tk app on OS X
By Andreas S. at 06/22/2012 - 08:38Sure maybe let's take it offline (not fighting words by any stretch of
the imagination):
<a href="mailto: ... at gmail dot com"> ... at gmail dot com</a>
Re: Deploying Ruby-Tk app on OS X
By Andreas S. at 06/21/2012 - 22:33I would be interested. I'm pretty much a newbie with Ruby but have a lot
of experience in deploying OS X apps with other languages, including
Tcl/Tk and Python; I've use py2app extensively and have done some
hacking on cx_freeze (another Python deployment system), and I have a
few ideas on what a Ruby system might look like.
Re: Deploying Ruby-Tk app on OS X
By Andreas S. at 06/20/2012 - 19:20I hope to build one for OS X sometime in the near future, perhaps we can
collaborate?
Re: Deploying Ruby-Tk app on OS X
By Kevin Walzer at 06/18/2012 - 10:42Alas, I think what I am looking for does not exist.