mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
Merge pull request #7122 from federicobond/use-postflight-dsl
Use postflight DSL for suppressing Move to Applications alerts
This commit is contained in:
+2
-1
@@ -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 => [
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
+1
-2
@@ -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
|
||||
|
||||
+2
-2
@@ -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 => [
|
||||
|
||||
+1
-2
@@ -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
|
||||
|
||||
+2
-2
@@ -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',
|
||||
|
||||
@@ -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
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
+2
-1
@@ -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 => [
|
||||
|
||||
+1
-2
@@ -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 => [
|
||||
|
||||
+1
-2
@@ -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
|
||||
|
||||
+1
-2
@@ -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
|
||||
|
||||
+1
-2
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
+1
-3
@@ -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
|
||||
|
||||
+1
-2
@@ -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 => [
|
||||
|
||||
+1
-3
@@ -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
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user