From 146024b214d22fd27a7385347b129c36f2a09c37 Mon Sep 17 00:00:00 2001 From: Federico Bond Date: Sat, 1 Nov 2014 20:14:30 -0300 Subject: [PATCH 01/22] Use postflight DSL in atom --- Casks/atom.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Casks/atom.rb b/Casks/atom.rb index 8f2e48c37be0..12cf34aa4841 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 => [ From 2d2ea5fb2292fd8754179f496037e9dd76aeeaf2 Mon Sep 17 00:00:00 2001 From: Federico Bond Date: Sat, 1 Nov 2014 20:14:30 -0300 Subject: [PATCH 02/22] Use postflight DSL in bartender --- Casks/bartender.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Casks/bartender.rb b/Casks/bartender.rb index 51bf56465df9..4a82d8244a4c 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 From 41e88f20935ce6624104a70230c35e230762f7eb Mon Sep 17 00:00:00 2001 From: Federico Bond Date: Sat, 1 Nov 2014 20:14:30 -0300 Subject: [PATCH 03/22] Use postflight DSL in beyond-compare --- Casks/beyond-compare.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Casks/beyond-compare.rb b/Casks/beyond-compare.rb index 0e42d6d3f7bc..dfe4cfcb7d88 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 From 504bace5785cb3efc824f3289b95183bd5ab1b2c Mon Sep 17 00:00:00 2001 From: Federico Bond Date: Sat, 1 Nov 2014 20:14:30 -0300 Subject: [PATCH 04/22] Use postflight DSL in changes-meter --- Casks/changes-meter.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Casks/changes-meter.rb b/Casks/changes-meter.rb index 0619a3f0f40e..d7809faac9d2 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 From 50e1f450b1d37f1d104c82937367a81b49f5a6de Mon Sep 17 00:00:00 2001 From: Federico Bond Date: Sat, 1 Nov 2014 20:14:30 -0300 Subject: [PATCH 05/22] Use postflight DSL in cheatsheet --- Casks/cheatsheet.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Casks/cheatsheet.rb b/Casks/cheatsheet.rb index e13996f909ea..3308a9fe2e86 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 From 29615d9cbee17a6007e9e5ff31e543022bf14893 Mon Sep 17 00:00:00 2001 From: Federico Bond Date: Sat, 1 Nov 2014 20:14:30 -0300 Subject: [PATCH 06/22] Use postflight DSL in clamxav --- Casks/clamxav.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Casks/clamxav.rb b/Casks/clamxav.rb index c9541c184fa7..bdbb36a796a7 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 => [ From 6f96cfe602e610d987e91c52c75f77e48befa280 Mon Sep 17 00:00:00 2001 From: Federico Bond Date: Sat, 1 Nov 2014 20:14:30 -0300 Subject: [PATCH 07/22] Use postflight DSL in daisydisk --- Casks/daisydisk.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Casks/daisydisk.rb b/Casks/daisydisk.rb index 08ce065b2e62..045df0f8b308 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 From 4b11625046ced5abc50aff4dfbbc8967cba5c943 Mon Sep 17 00:00:00 2001 From: Federico Bond Date: Sat, 1 Nov 2014 20:14:31 -0300 Subject: [PATCH 08/22] Use postflight DSL in dash --- Casks/dash.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Casks/dash.rb b/Casks/dash.rb index 8353056367be..f737563600fa 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', From 6f2d7f1cf056da277d4f87a781858487f9eb2d45 Mon Sep 17 00:00:00 2001 From: Federico Bond Date: Sat, 1 Nov 2014 20:14:31 -0300 Subject: [PATCH 09/22] Use postflight DSL in fantastical --- Casks/fantastical.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Casks/fantastical.rb b/Casks/fantastical.rb index f48855c12094..eace9c7d61ee 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 From d05b0cdaa0cad066ee92ca7f4c745df7b5c32b50 Mon Sep 17 00:00:00 2001 From: Federico Bond Date: Sat, 1 Nov 2014 20:14:31 -0300 Subject: [PATCH 10/22] Use postflight DSL in flux --- Casks/flux.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Casks/flux.rb b/Casks/flux.rb index db9da9b74cee..b69d8af14328 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 From 5b76a2c9db483aa684496fd8378be05d7433fb76 Mon Sep 17 00:00:00 2001 From: Federico Bond Date: Sat, 1 Nov 2014 20:14:31 -0300 Subject: [PATCH 11/22] Use postflight DSL in github --- Casks/github.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Casks/github.rb b/Casks/github.rb index ca2c96ca4439..c20cebec08dd 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 => [ From a0578c5792716a5d3a3a7d957a25bf877e25b5c5 Mon Sep 17 00:00:00 2001 From: Federico Bond Date: Sat, 1 Nov 2014 20:14:31 -0300 Subject: [PATCH 12/22] Use postflight DSL in hipchat --- Casks/hipchat.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Casks/hipchat.rb b/Casks/hipchat.rb index 54fb9c448059..bac780d6b267 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 => [ From fe3eece89594dc2fdbc299e7093cccefced337d4 Mon Sep 17 00:00:00 2001 From: Federico Bond Date: Sat, 1 Nov 2014 20:14:31 -0300 Subject: [PATCH 13/22] Use postflight DSL in hive --- Casks/hive.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Casks/hive.rb b/Casks/hive.rb index f6e5cabe78fa..26fa9bfde399 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 From 36b79b4ad53069ec3a3419944bb6d7ab8dbad181 Mon Sep 17 00:00:00 2001 From: Federico Bond Date: Sat, 1 Nov 2014 20:14:31 -0300 Subject: [PATCH 14/22] Use postflight DSL in hockeyapp --- Casks/hockeyapp.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Casks/hockeyapp.rb b/Casks/hockeyapp.rb index 5d603e799ad0..f01d2d3f94ab 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 From 0c11417984e990243fbc4955b4c202aed8512545 Mon Sep 17 00:00:00 2001 From: Federico Bond Date: Sat, 1 Nov 2014 20:14:31 -0300 Subject: [PATCH 15/22] Use postflight DSL in houdahspot --- Casks/houdahspot.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Casks/houdahspot.rb b/Casks/houdahspot.rb index 9de1319e7fde..7f2cd3715939 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 From 87a6115f9e65a8a4a0d7b2917b0e1400a6a5885b Mon Sep 17 00:00:00 2001 From: Federico Bond Date: Sat, 1 Nov 2014 20:14:31 -0300 Subject: [PATCH 16/22] Use postflight DSL in kaleidoscope --- Casks/kaleidoscope.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Casks/kaleidoscope.rb b/Casks/kaleidoscope.rb index 7928745d32bd..59e49712da73 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 From 17d847724b0f2b16c9476be892e0147e4573d19c Mon Sep 17 00:00:00 2001 From: Federico Bond Date: Sat, 1 Nov 2014 20:14:31 -0300 Subject: [PATCH 17/22] Use postflight DSL in macupdate-desktop --- Casks/macupdate-desktop.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Casks/macupdate-desktop.rb b/Casks/macupdate-desktop.rb index 49a2d90a14c6..42e2f1da17a5 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 From f04aa77bbfaf31124f5ff11b74540eacde86b58d Mon Sep 17 00:00:00 2001 From: Federico Bond Date: Sat, 1 Nov 2014 20:14:31 -0300 Subject: [PATCH 18/22] Use postflight DSL in sidekick --- Casks/sidekick.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Casks/sidekick.rb b/Casks/sidekick.rb index 1c581fd1135f..171ef62de6ff 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 From b38b9f754aa364df3bba6df12de19a0c73631c40 Mon Sep 17 00:00:00 2001 From: Federico Bond Date: Sat, 1 Nov 2014 20:14:31 -0300 Subject: [PATCH 19/22] Use postflight DSL in soulver --- Casks/soulver.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Casks/soulver.rb b/Casks/soulver.rb index f5e5bec17d7b..2041124cb785 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 => [ From 72a07443ac857bfbbe11b937131df14a80d949ab Mon Sep 17 00:00:00 2001 From: Federico Bond Date: Sat, 1 Nov 2014 20:14:31 -0300 Subject: [PATCH 20/22] Use postflight DSL in tangerine --- Casks/tangerine.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Casks/tangerine.rb b/Casks/tangerine.rb index 7d4facac82a9..3378beee2a23 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 From f52a73c5438bc3f41bd5ac1e24ca222757833fe6 Mon Sep 17 00:00:00 2001 From: Federico Bond Date: Sat, 1 Nov 2014 20:14:31 -0300 Subject: [PATCH 21/22] Use postflight DSL in todoist --- Casks/todoist.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Casks/todoist.rb b/Casks/todoist.rb index b4dd65d9289c..9a96153c7d16 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 From 8395d831b950a0ffc508ef0d3fa689c825e2fd8c Mon Sep 17 00:00:00 2001 From: Federico Bond Date: Sat, 1 Nov 2014 20:14:31 -0300 Subject: [PATCH 22/22] Use postflight DSL in yojimbo --- Casks/yojimbo.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Casks/yojimbo.rb b/Casks/yojimbo.rb index 5f7460b521ba..64b4c9dd54c7 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