diff --git a/Rakefile b/Rakefile index 8de54a84..ec12e132 100644 --- a/Rakefile +++ b/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] \ No newline at end of file