trying to build self-contained RubyCocoa apps

D

Doug Beaver

i've written a RubyCocoa app, but i would like to be able to distribute
it to users without requiring them to install ruby or RubyCocoa.

i see that RubyCocoa.framework has been changed to make it easier to
bundle in the Contents/Frameworks section of the app bundle, but i'm
having trouble bundling ruby itself (lib/ruby/1.8, etc) with the app as
well.

i figured that the best approach was to statically link libruby into
RubyCocoa's shared object and then somehow include all the .rb and ext
classes inside RubyCocoa.framework/Resources/ruby. i've got the
static lib part working, but still can't get RubyCocoa to load non-cocoa
ruby classes from inside the bundle.

has anyone gotten this working before? i saw the
BundleRubyExecutableInOSX node on rubygarden, but it doesn't look like
anyone has figured out the entire set of steps that are required.

i'm interested in getting this figured out because it would be sweet to
let people download my apps without them even knowing that ruby was
working under the hood. i'm using non-standard extensions like
ruby-audiofile, so until i have a self-contained app, i don't feel
comfortable distributing it; it would require too much work on their
part to get things working...

thanks,

doug
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top