mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
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:
+1
-2
@@ -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
|
||||
|
||||
@@ -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 => [
|
||||
|
||||
Reference in New Issue
Block a user