diff --git a/Casks/atom.rb b/Casks/atom.rb index 8f2e48c37b..12cf34aa48 100644 --- a/Casks/atom.rb +++ b/Casks/atom.rb @@ -9,8 +9,9 @@ class Atom < Cask app 'Atom.app' binary 'Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm', :target => 'apm' binary 'Atom.app/Contents/Resources/app/atom.sh', :target => 'atom' + postflight do - system '/usr/bin/defaults', 'write', 'com.github.atom', 'moveToApplicationsFolderAlertSuppress', '-bool', 'true' + suppress_move_to_applications end zap :delete => [ diff --git a/Casks/bartender.rb b/Casks/bartender.rb index 51bf56465d..4a82d8244a 100644 --- a/Casks/bartender.rb +++ b/Casks/bartender.rb @@ -10,8 +10,8 @@ class Bartender < Cask app 'Bartender.app' postflight do - # Don't ask to move the app bundle to /Applications - system '/usr/bin/defaults', 'write', 'com.surteesstudios.Bartender', 'moveToApplicationsFolderAlertSuppress', '-bool', 'true' + suppress_move_to_applications end + zap :delete => '~/Library/Preferences/com.surteesstudios.Bartender.plist' end diff --git a/Casks/beyond-compare.rb b/Casks/beyond-compare.rb index 0e42d6d3f7..dfe4cfcb7d 100644 --- a/Casks/beyond-compare.rb +++ b/Casks/beyond-compare.rb @@ -9,7 +9,6 @@ class BeyondCompare < Cask app 'Beyond Compare.app' postflight do - # Don't ask to move the app bundle to /Applications - system '/usr/bin/defaults', 'write', 'com.ScooterSoftware.BeyondCompare', 'moveToApplicationsFolderAlertSuppress', '-bool', 'true' + suppress_move_to_applications end end diff --git a/Casks/changes-meter.rb b/Casks/changes-meter.rb index 0619a3f0f4..d7809faac9 100644 --- a/Casks/changes-meter.rb +++ b/Casks/changes-meter.rb @@ -8,7 +8,6 @@ class ChangesMeter < Cask app 'Changes Meter.app' postflight do - # Don't ask to move the app bundle to /Applications - system %Q{/usr/bin/defaults write com.intuiware.ChangesMeter moveToApplicationsFolderAlertSuppress -bool true} + suppress_move_to_applications end end diff --git a/Casks/cheatsheet.rb b/Casks/cheatsheet.rb index e13996f909..3308a9fe2e 100644 --- a/Casks/cheatsheet.rb +++ b/Casks/cheatsheet.rb @@ -10,7 +10,6 @@ class Cheatsheet < Cask app 'CheatSheet.app' postflight do - # Don't ask to move the app bundle to /Applications - system '/usr/bin/defaults', 'write', 'com.mediaatelier.CheatSheet', 'moveToApplicationsFolderAlertSuppress', '-bool', 'true' + suppress_move_to_applications end end diff --git a/Casks/clamxav.rb b/Casks/clamxav.rb index c9541c184f..bdbb36a796 100644 --- a/Casks/clamxav.rb +++ b/Casks/clamxav.rb @@ -9,9 +9,9 @@ class Clamxav < Cask license :unknown app 'ClamXav.app' + postflight do - # Don't ask to move the app bundle to /Applications - system '/usr/bin/defaults', 'write', 'uk.co.markallan.clamxav', 'moveToApplicationsFolderAlertSuppress', '-bool', 'true' + suppress_move_to_applications end zap :delete => [ diff --git a/Casks/daisydisk.rb b/Casks/daisydisk.rb index 08ce065b2e..045df0f8b3 100644 --- a/Casks/daisydisk.rb +++ b/Casks/daisydisk.rb @@ -10,7 +10,6 @@ class Daisydisk < Cask app 'DaisyDisk.app' postflight do - # Don't ask to move the app bundle to /Applications - system '/usr/bin/defaults', 'write', 'com.daisydiskapp.DaisyDiskStandAlone', 'moveToApplicationsFolderAlertSuppress', '-bool', 'true' + suppress_move_to_applications end end diff --git a/Casks/dash.rb b/Casks/dash.rb index 8353056367..f737563600 100644 --- a/Casks/dash.rb +++ b/Casks/dash.rb @@ -10,9 +10,9 @@ class Dash < Cask app 'Dash.app' postflight do - # Don't ask to move the app bundle to /Applications - system '/usr/bin/defaults', 'write', 'com.kapeli.dash', 'moveToApplicationsFolderAlertSuppress', '-bool', 'true' + suppress_move_to_applications end + zap :delete => [ '~/Library/Application Support/Dash/library.dash', '~/Library/Preferences/com.kapeli.dash.plist', diff --git a/Casks/fantastical.rb b/Casks/fantastical.rb index f48855c120..eace9c7d61 100644 --- a/Casks/fantastical.rb +++ b/Casks/fantastical.rb @@ -11,8 +11,8 @@ class Fantastical < Cask app 'Fantastical.app' postflight do - # Don't ask to move the app bundle to /Applications - system '/usr/bin/defaults', 'write', 'com.flexibits.fantastical', 'moveToApplicationsFolderAlertSuppress', '-bool', 'true' + suppress_move_to_applications end + zap :delete => '~/Library/Preferences/com.flexibits.fantastical.plist' end diff --git a/Casks/flux.rb b/Casks/flux.rb index db9da9b74c..b69d8af143 100644 --- a/Casks/flux.rb +++ b/Casks/flux.rb @@ -10,8 +10,8 @@ class Flux < Cask app 'Flux.app' postflight do - # Don't ask to move the app bundle to /Applications - system '/usr/bin/defaults', 'write', 'org.herf.Flux', 'moveToApplicationsFolderAlertSuppress', '-bool', 'true' + suppress_move_to_applications end + zap :delete => '~/Library/Preferences/org.herf.Flux.plist' end diff --git a/Casks/github.rb b/Casks/github.rb index ca2c96ca44..c20cebec08 100644 --- a/Casks/github.rb +++ b/Casks/github.rb @@ -8,8 +8,9 @@ class Github < Cask app 'GitHub.app' binary 'GitHub.app/Contents/MacOS/github_cli', :target => 'github' + postflight do - system '/usr/bin/defaults', 'write', 'com.github.GitHub', 'moveToApplicationsFolderAlertSuppress', '-bool', 'true' + suppress_move_to_applications end zap :delete => [ diff --git a/Casks/hipchat.rb b/Casks/hipchat.rb index 54fb9c4480..bac780d6b2 100644 --- a/Casks/hipchat.rb +++ b/Casks/hipchat.rb @@ -10,8 +10,7 @@ class Hipchat < Cask app 'HipChat.app' postflight do - # Don't ask to move the app bundle to /Applications - system '/usr/bin/defaults', 'write', 'com.hipchat.HipChat', 'moveToApplicationsFolderAlertSuppress', '-bool', 'true' + suppress_move_to_applications end zap :delete => [ diff --git a/Casks/hive.rb b/Casks/hive.rb index f6e5cabe78..26fa9bfde3 100644 --- a/Casks/hive.rb +++ b/Casks/hive.rb @@ -11,7 +11,6 @@ class Hive < Cask app 'Hive.app' postflight do - # Don't ask to move the app bundle to /Applications - system '/usr/bin/defaults', 'write', 'com.hivewallet.Hive', 'moveToApplicationsFolderAlertSuppress', '-bool', 'true' + suppress_move_to_applications end end diff --git a/Casks/hockeyapp.rb b/Casks/hockeyapp.rb index 5d603e799a..f01d2d3f94 100644 --- a/Casks/hockeyapp.rb +++ b/Casks/hockeyapp.rb @@ -11,7 +11,6 @@ class Hockeyapp < Cask binary 'HockeyApp.app/Contents/Resources/puck' postflight do - # Don't ask to move the app bundle to /Applications - system '/usr/bin/defaults', 'write', 'com.hockeyapp.mac', 'moveToApplicationsFolderAlertSuppress', '-bool', 'true' + suppress_move_to_applications end end diff --git a/Casks/houdahspot.rb b/Casks/houdahspot.rb index 9de1319e7f..7f2cd37159 100644 --- a/Casks/houdahspot.rb +++ b/Casks/houdahspot.rb @@ -10,7 +10,6 @@ class Houdahspot < Cask app 'HoudahSpot.app' postflight do - # Don't ask to move the app bundle to /Applications - system '/usr/bin/defaults', 'write', 'com.houdah.HoudahSpot', 'moveToApplicationsFolderAlertSuppress', '-bool', 'true' + suppress_move_to_applications end end diff --git a/Casks/kaleidoscope.rb b/Casks/kaleidoscope.rb index 7928745d32..59e49712da 100644 --- a/Casks/kaleidoscope.rb +++ b/Casks/kaleidoscope.rb @@ -12,9 +12,9 @@ class Kaleidoscope < Cask binary 'Kaleidoscope.app/Contents/Resources/bin/ksdiff' postflight do - # Don't ask to move the app bundle to /Applications - system '/usr/bin/defaults', 'write', 'com.blackpixel.kaleidoscope', 'moveToApplicationsFolderAlertSuppress', '-bool', 'true' + suppress_move_to_applications end + caveats do files_in_usr_local end diff --git a/Casks/macupdate-desktop.rb b/Casks/macupdate-desktop.rb index 49a2d90a14..42e2f1da17 100644 --- a/Casks/macupdate-desktop.rb +++ b/Casks/macupdate-desktop.rb @@ -9,8 +9,8 @@ class MacupdateDesktop < Cask license :unknown app 'MacUpdate Desktop.app' + postflight do - # Don't ask to move the app bundle to /Applications - system '/usr/bin/defaults', 'write', 'com.macupdate.desktop6', 'moveToApplicationsFolderAlertSuppress', '-bool', 'true' + suppress_move_to_applications end end diff --git a/Casks/sidekick.rb b/Casks/sidekick.rb index 1c581fd113..171ef62de6 100644 --- a/Casks/sidekick.rb +++ b/Casks/sidekick.rb @@ -10,8 +10,6 @@ class Sidekick < Cask app 'Sidekick.app' postflight do - # Don't ask to move the app bundle to /Applications - system '/usr/bin/defaults', 'write', 'com.oomphalot.Sidekick', 'moveToApplicationsFolderAlertSuppress', '-bool', 'true' + suppress_move_to_applications end - end diff --git a/Casks/soulver.rb b/Casks/soulver.rb index f5e5bec17d..2041124cb7 100644 --- a/Casks/soulver.rb +++ b/Casks/soulver.rb @@ -10,8 +10,7 @@ class Soulver < Cask app 'Soulver.app' postflight do - # Don't ask to move the app bundle to /Applications - system '/usr/bin/defaults', 'write', 'com.acqualia.soulver', 'moveToApplicationsFolderAlertSuppress', '-bool', 'true' + suppress_move_to_applications end zap :delete => [ diff --git a/Casks/tangerine.rb b/Casks/tangerine.rb index 7d4facac82..3378beee2a 100644 --- a/Casks/tangerine.rb +++ b/Casks/tangerine.rb @@ -9,8 +9,6 @@ class Tangerine < Cask app 'Tangerine!.app' postflight do - # Don't ask to move the app bundle to /Applications - system '/usr/bin/defaults', 'write', 'com.potionfactory.Tangerine', 'moveToApplicationsFolderAlertSuppress', '-bool', 'true' + suppress_move_to_applications end - end diff --git a/Casks/todoist.rb b/Casks/todoist.rb index b4dd65d928..9a96153c7d 100644 --- a/Casks/todoist.rb +++ b/Casks/todoist.rb @@ -10,7 +10,6 @@ class Todoist < Cask app 'Todoist.app' postflight do - # Don't ask to move the app bundle to /Applications - system '/usr/bin/defaults', 'write', 'com.todoist.mac.Todoist', 'moveToApplicationsFolderAlertSuppress', '-bool', 'true' + suppress_move_to_applications end end diff --git a/Casks/yojimbo.rb b/Casks/yojimbo.rb index 5f7460b521..64b4c9dd54 100644 --- a/Casks/yojimbo.rb +++ b/Casks/yojimbo.rb @@ -7,7 +7,8 @@ class Yojimbo < Cask license :unknown app 'Yojimbo.app' + postflight do - system '/usr/bin/defaults', 'write', 'com.barebones.yojimbo4', 'moveToApplicationsFolderAlertSuppress', '-bool', 'true' + suppress_move_to_applications end end