From: John P. <joh...@ni...> - 2004-04-07 16:40:16
|
It looks like it's possible to create a completely self-contained .app bundle that contains Ruby on-board. These pages suggest that libruby and RubyCocoa could live in an app bundle's Contents/Frameworks directory: * http://www.imasy.or.jp/~hisa/mac/rubycocoa/changelog.html * http://cocoadevcentral.com/articles/000042.php * http://qin.laya.com/tech_coding_help/dylib_linking.html Can folks on this list contribute toward a recipe for building the Ruby and RubyCocoa dylibs appropriately? I will collect responses on Ruby Garden at http://www.rubygarden.org/ruby?BundleRubyExecutableInMacOSX so we can all keep it updated and refer to it for FAQ's. That page has what I know so far. The rest of the message is what's currently on the wiki page: ===== The libruby.X.X.X.dylib apparently needs to go in the Example.app/Contents/Frameworks/ directory. So I'm guessing we need to do: ./configure --libdir = @executable_path/../Frameworks ? / But then what? Where does the libruby.X.X.X.dylib go at build time? And then do we just copy it straight into the bundle's Contents/Frameworks? Also, how then to start a Ruby script? Do we embed the interpreter and use a C call to load our rb_main.rb, like described in ProgrammingRuby in <http://www.rubycentral.com/book/ext_ruby.html#S6>? RubyCocoa too The 2003-07-25 entry in [[RubyCocoa's changelog]] says it supports living in an .app bundle like this. Could someone write down how to do this? It looks like it involves tweaking the project in Project Builder / Xcode. -- Ryan "John" Platte Custom services, NIKA Consulting http://nikaconsulting.com/ |