Skip to content
Browse files

Used copy instead of link so that spotlight finds it

  • Loading branch information...
1 parent ca298e9 commit 2155c5526bfb5b8c9b6818d2459840bb7c63e4de @cunnie cunnie committed Nov 29, 2011
Showing with 7 additions and 5 deletions.
  1. +7 −5 recipes/screen_sharing_app.rb
View
12 recipes/screen_sharing_app.rb
@@ -1,12 +1,14 @@
unless File.exists?("/Applications/Screen Sharing.app")
-
- link "/Applications/Screen\ Sharing.app" do
- to "/System/Library/CoreServices/Screen\ Sharing.app"
+
+ ruby_block "Copy Screen Sharing to /Applications" do
+ block do
+ FileUtils.cp_r("/System/Library/CoreServices/Screen\ Sharing.app","/Applications/",:preserve => true)
+ end
end
- ruby_block "assure the link /Applications/Screen Sharing.app was successfully created" do
+ ruby_block "assure that /Applications/Screen Sharing.app was successfully created" do
block do
- raise "Linking /Applications/Screen Sharing.app to /System/Library/CoreServices/Screen Sharing.app failed." unless File.exists?("/Applications/Screen Sharing.app")
+ raise "Copying /Applications/Screen Sharing.app to /System/Library/CoreServices/Screen Sharing.app failed." unless File.exists?("/Applications/Screen Sharing.app")
end
end
end

0 comments on commit 2155c55

Please sign in to comment.
Something went wrong with that request. Please try again.