Did someone answer this one - and I missed it?
I too am interested in what the current way to do this is.
Cheers,
J
On Jan 22, 2009, at 7:31 , Dr Nic Williams wrote:
I recently shared a MacRuby app with a friend, with MacRuby.framework
included in the .app via a Copy Files target; but the ap
The way I do it is to have a copy frameworks build phase, and a "Run
Script" build phase that runs last with the following script (rather,
that should all be one line):
install_name_tool -change
/Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/libmacruby.dylib
@executable_path/../Framewo
Thanks for the new idea; though I'm getting an error if I
rename/remove /Library/Frameworks/MacRuby.framework on my dev machine:
`require': no such file to load -- hotcocoa (LoadError)
Here's a screenshot of my Target including the Copy Files + Run Script:
http://skitch.com/drnic/bndc5/copy-
Hmm, even though I'm now using the copied dylib, the $LOAD_PATH is
still assuming that all the ruby goodies are in
/Library/Frameworks/MacRuby.framework :
["/Users/drnic/Documents/ruby/macruby_apps/CommitChat/build/Release/CommitChat.app/Contents/Resources",
"test",
"/Library/Frameworks/MacRuby.f
Hey Nic,
Even though a page about RubyCocoa, the steps descried there are
pretty general:
http://rubycocoa.sourceforge.net/EmbedRubyCocoa
The standaloneify script that's mentioned there might give you insight
in what you
would need to do to bundle everything.
Cheers,
Eloy
On 23 jan 2009,
On Fri, Jan 23, 2009 at 10:21 AM, Eloy Duran wrote:
> Even though a page about RubyCocoa, the steps descried there are pretty
> general:
> http://rubycocoa.sourceforge.net/EmbedRubyCocoa
>
> The standaloneify script that's mentioned there might give you insight in
> what you
> would need to do to
Matt, can you create a fork of the macruby github repo with these
patches applied? Or do you have one already?
Cheers
Nic
On Fri, Jan 23, 2009 at 8:30 PM, Matt Mower wrote:
> On Fri, Jan 23, 2009 at 10:21 AM, Eloy Duran wrote:
>> Even though a page about RubyCocoa, the steps descried there are
To fix up the $LOAD_PATH, I added the following to my rb_main.rb
before "require 'hotcocoa'":
local_path = $LOAD_PATH.find {|path| path =~ /CommitChat.app/}
base_local_path = local_path.match(%r{.*CommitChat.app/Contents/})[0]
library_paths = $LOAD_PATH.select {|path| path =~
%r{/Library/Framewor
On Fri, Jan 23, 2009 at 10:39 AM, Dr Nic Williams
wrote:
> Matt, can you create a fork of the macruby github repo with these
> patches applied? Or do you have one already?
>
I am no longer using MacRuby so I don't have such a fork. But I
imagine it would be easy for you to do and just pull in my
Hey Nic,
Wouldn't something like this be sufficient:
$LOAD_PATH.unshift
File.join(OSX::NSBundle.mainBundle.privateFrameworksPath,
'MacRuby.framework/Versions/Current/usr/lib/ruby/1.9.0')
Eloy
On Jan 23, 2009, at 12:04 PM, Dr Nic Williams wrote:
To fix up the $LOAD_PATH, I added the foll
10 matches
Mail list logo