Browse Source

Update adobe-photoshop-cs6: preflight (#4642)

* Update adobe-photoshop-cs6: preflight

* sudo: true
master
commitay 7 years ago
committed by GitHub
parent
commit
45f536c777
  1. 9
      Casks/adobe-photoshop-cs6.rb

9
Casks/adobe-photoshop-cs6.rb

@ -14,11 +14,15 @@ cask 'adobe-photoshop-cs6' do
installer script: {
executable: "#{staged_path}/#{name.join}/Install.app/Contents/MacOS/Install",
args: ['--mode=silent', "--deploymentFile=#{staged_path}/#{name.join}/Deployment/en_US_Deployment.xml"],
sudo: true,
}
preflight do
system_command '/usr/bin/killall',
args: ['-kill', 'SafariNotificationAgent']
processes = system_command '/bin/launchctl', args: ['list']
if processes.stdout.lines.any? { |line| line =~ %r{^\d+\t\d\tcom.apple.SafariNotificationAgent$} }
system_command '/usr/bin/killall', args: ['-kill', 'SafariNotificationAgent']
end
end
uninstall_preflight do
@ -33,6 +37,7 @@ cask 'adobe-photoshop-cs6' do
script: {
executable: "#{name.join}/Install.app/Contents/MacOS/Install",
args: ['--mode=silent', "--deploymentFile=#{staged_path}/#{name.join}/Deployment/en_US_Uninstall.xml"],
sudo: true,
}
caveats 'Installation or Uninstallation may fail with Exit Code 19 (Conflicting Processes running) if Browsers, Safari Notification Service or SIMBL Services (e.g. Flashlight) are running or Adobe Creative Cloud or any other Adobe Products are already installed. See Logs in /Library/Logs/Adobe/Installers if Installation or Uninstallation fails, to identifify the conflicting processes.'

Loading…
Cancel
Save