Skip to content

Commit

Permalink
Added :restart task to Rakefile, so that Safari is restarted when com…
Browse files Browse the repository at this point in the history
…piling a new ClickToFlash version.

Signed-off-by: Jonathan 'Wolf' Rentzsch <jwr.git@redshed.net>
  • Loading branch information
bomberstudios authored and rentzsch committed Jul 21, 2009
1 parent 506c049 commit c1c717d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
desc "Restart Safari"
task :restart do
system("osascript -e 'tell application \"Safari\"' -e 'quit' -e 'end tell' && osascript -e 'tell application \"Safari\"' -e 'activate' -e 'end tell'")
end

desc "Build the Release configuration of the plugin and install for the current user."
task :default do
task :release do
system('xcodebuild -configuration Release -target "Install plugin for user"')
end

desc "Build the Debug configuration of the plugin and install for the current user."
task :debug do
system('xcodebuild -configuration Debug -target "Install plugin for user"')
end

task :default => [:release, :restart]

0 comments on commit c1c717d

Please sign in to comment.