Skip to content

Commit

Permalink
Added embed task to change bundles dependencies and rellby embed MacRuby
Browse files Browse the repository at this point in the history
  • Loading branch information
reborg committed Aug 4, 2009
1 parent fac1899 commit fe7d09b
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion Rakefile
Expand Up @@ -6,4 +6,17 @@ task :default => [:test]
task :test do
require 'open3'
Open3.popen3('macruby test/all_tests.rb') { |stdin, stdout, stderr| puts stdout.read }
end
end

task :embed => [:deploy] do
root = "Frameworks/MacRuby.framework/Versions/Current"
`rm -rf ./#{AppConfig.name}.app/Contents/#{root}/0.3`
`find ./#{AppConfig.name}.app/Contents -name "1.9.0" -type d | xargs rm -rf`
`rm -rf ./#{AppConfig.name}.app/Contents/#{root}/usr/include/ruby-1.9.0`
`rm -rf ./#{AppConfig.name}.app/Contents/#{root}/usr/lib/libmacruby.1.9.0.dylib`
`find ./#{AppConfig.name}.app/Contents -name "*.bundle" \
-exec install_name_tool -change \
/Library/#{root}/usr/lib/libmacruby.dylib \
@executable_path/../#{root}/usr/lib/libmacruby.dylib {} \\;`
end

0 comments on commit fe7d09b

Please sign in to comment.