Skip to content
Browse files

Added :restart task to Rakefile, so that Safari is restarted when com…

…piling a new ClickToFlash version.

Signed-off-by: Jonathan 'Wolf' Rentzsch <jwr.git@redshed.net>
  • Loading branch information...
1 parent 506c049 commit c1c717dfb213d8e88af746fad3c06b9db3f96a1d @bomberstudios bomberstudios committed with rentzsch
Showing with 8 additions and 1 deletion.
  1. +8 −1 Rakefile
View
9 Rakefile
@@ -1,5 +1,10 @@
+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
@@ -7,3 +12,5 @@ desc "Build the Debug configuration of the plugin and install for the current us
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.
Something went wrong with that request. Please try again.