Skip to content

Commit

Permalink
Merge pull request #7660 from federicobond/use-postflight-dsl-key
Browse files Browse the repository at this point in the history
Use postflight DSL with :key option for suppressing Move to Applications alerts
  • Loading branch information
federicobond committed Nov 28, 2014
2 parents 4103ef3 + 1ac5469 commit b855d6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions Casks/alfred.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
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
3 changes: 1 addition & 2 deletions Casks/path-finder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
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 => [
Expand Down

0 comments on commit b855d6f

Please sign in to comment.