Skip to content

Instantly share code, notes, and snippets.

@reborg
Created August 5, 2009 06:41
Show Gist options
  • Save reborg/162543 to your computer and use it in GitHub Desktop.
Save reborg/162543 to your computer and use it in GitHub Desktop.
task :embed => [:deploy] do
`rm -rf ./#{AppConfig.name}.app/Contents/Frameworks/MacRuby.framework/Versions/0.3`
`find ./#{AppConfig.name}.app/Contents -name "1.9.0" -type d | xargs rm -rf`
`rm -rf ./#{AppConfig.name}.app/Contents/Frameworks/MacRuby.framework/Versions/Current/usr/include/ruby-1.9.0`
`rm -rf ./#{AppConfig.name}.app/Contents/Frameworks/MacRuby.framework/Versions/Current/usr/lib/libmacruby.1.9.0.dylib`
`find ./#{AppConfig.name}.app/Contents -name "*.bundle" -exec install_name_tool -change /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/libmacruby.dylib @executable_path/../Frameworks/MacRuby.framework/Versions/Current/usr/lib/libmacruby.dylib {} \\;`
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment