Merge pull request #7660 from federicobond/use-postflight-dsl-key

Use postflight DSL with :key option for suppressing Move to Applications alerts
This commit is contained in:
Federico Bond
2014-11-27 21:02:37 -03:00
2 changed files with 2 additions and 4 deletions
+1 -2
View File
@@ -10,7 +10,6 @@ cask :v1 => 'alfred' do
app 'Alfred 2.app/Contents/Preferences/Alfred Preferences.app'
postflight do
# Don't ask to move the app bundle to /Applications
system '/usr/bin/defaults', 'write', 'com.runningwithcrayons.alfred-2', 'suppressMoveToApplications', '-bool', 'true'
suppress_move_to_applications :key => 'suppressMoveToApplications'
end
end
+1 -2
View File
@@ -9,8 +9,7 @@ cask :v1 => 'path-finder' do
app 'Path Finder.app'
postflight do
# Don't ask to move the app bundle to /Applications
system '/usr/bin/defaults', 'write', 'com.cocoatech.PathFinder', 'kNTMoveToApplicationsFolderAlertSuppress', '-bool', 'true'
suppress_move_to_applications :key => 'kNTMoveToApplicationsFolderAlertSuppress'
end
zap :delete => [