Browse Source

Update adobe-photoshop-lightroom600.rb (#3184)

Update adobe-photoshop-lightroom600 to use `system_command`.
master
Miccal Matthews 8 years ago
committed by GitHub
parent
commit
f6878e12f0
  1. 18
      Casks/adobe-photoshop-lightroom600.rb

18
Casks/adobe-photoshop-lightroom600.rb

@ -13,13 +13,23 @@ cask 'adobe-photoshop-lightroom600' do
# and https://github.com/caskroom/homebrew-versions/pull/296
preflight do
system '/usr/bin/killall', '-kill', 'SafariNotificationAgent'
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/deploy/AdobeLightroom6.install.xml"
system_command '/usr/bin/killall',
args: ['-kill', 'SafariNotificationAgent']
system_command "#{staged_path}/Install.app/Contents/MacOS/Install",
args: [
'--mode=silent', "--deploymentFile=#{staged_path}/deploy/AdobeLightroom6.install.xml"
],
sudo: true
end
uninstall_preflight do
system '/usr/bin/killall', '-kill', 'SafariNotificationAgent'
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/deploy/AdobeLightroom6.remove.xml"
system_command '/usr/bin/killall',
args: ['-kill', 'SafariNotificationAgent']
system_command "#{staged_path}/Install.app/Contents/MacOS/Install",
args: [
'--mode=silent', "--deploymentFile=#{staged_path}/deploy/AdobeLightroom6.remove.xml"
],
sudo: true
end
uninstall delete: '/Applications/Adobe Lightroom/Adobe Lightroom.app'

Loading…
Cancel
Save