« Analysis of RubyCocoa's internals | Main | Short article on OS X Developer Tools »
February 21, 2005
RubyCocoa self-contained app working!
I was able to tweak RubyCocoa's source and got a fully self-contained RubyCocoa app developed. The changes are ugly and not reusable by others yet (the path to RubyCocoa.framework's ruby libs is hardcoded into the RC runtime), but the darn thing works. I'm pretty excited. The bundled app is about 15MB in size, which is big, not the end of the world.
In order to get this working, I had to:
- Change the libruby bundled in RubyCocoa from dynamic to static.
- Bundle the library dirs under $RUBY_ROOT/lib/* into RubyCocoa.framework's Resources dir.
- Change the RBRuntime code which sets up RubyCocoa's embedded ruby interpreter to find all libraries under RC frameworks Resources/ruby dir I added to the bundle.
- Change the Makefile for my app to copy the new RubyCocoa.framework into my app's Contents/Frameworks directory.
Now I need to work on making these changes usable by others and perhaps imported into the RubyCocoa project itself.
Posted by djb at February 21, 2005 03:42 PM