if RUBY_PLATFORM =~ /darwin/ then require 'rbuild-bundle' build_bundle(:bundle_name => 'OneButtonShooter.app', :resources_directories => ['Resources', '../GameShell/Resources'], :info_plist_file => 'Info.plist') build(:targets => ['OneButtonShooter.app/Contents/MacOS/OneButtonShooter'], :dependencies => ['../RubyGameShellCommon/RubyGameShellCommon-DeadStripped'], :command => 'cp ../RubyGameShellCommon/RubyGameShellCommon-DeadStripped OneButtonShooter.app/Contents/MacOS/OneButtonShooter', :message => 'Copying RubyGameShellCommon Executable') build(:targets => ['OneButtonShooter.app/Contents/Frameworks/OpenAL.framework'], :dependencies => ['../RubyGameShellCommon/External/openal/macosx/build/Deployment/OpenAL.framework'], :command => 'tar --directory ../RubyGameShellCommon/External/openal/macosx/build/Deployment -c OpenAL.framework | tar -x --directory OneButtonShooter.app/Contents/Frameworks/', :message => 'Copying OpenAL Framework') else build(:targets => ['OneButtonShooter'], :dependencies => ['../RubyGameShellCommon/RubyGameShellCommon'], :command => 'cp ../RubyGameShellCommon/RubyGameShellCommon OneButtonShooter', :message => 'Copying RubyGameShellCommon Executable') end