|
@ -19,6 +19,12 @@ cask 'adobe-cs6-master-collection' do |
|
|
# and https://github.com/caskroom/homebrew-versions/pull/296 |
|
|
# and https://github.com/caskroom/homebrew-versions/pull/296 |
|
|
|
|
|
|
|
|
preflight do |
|
|
preflight do |
|
|
|
|
|
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 |
|
|
|
|
|
|
|
|
language = case MacOS.language |
|
|
language = case MacOS.language |
|
|
when %r{^de} then 'de_DE' |
|
|
when %r{^de} then 'de_DE' |
|
|
when 'en-GB' then 'en_GB' |
|
|
when 'en-GB' then 'en_GB' |
|
@ -31,8 +37,6 @@ cask 'adobe-cs6-master-collection' do |
|
|
'en_US' |
|
|
'en_US' |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
system_command '/usr/bin/killall', |
|
|
|
|
|
args: ['-kill', 'SafariNotificationAgent'] |
|
|
|
|
|
system_command "#{staged_path}/Adobe CS6 Master Collection/Install.app/Contents/MacOS/Install", |
|
|
system_command "#{staged_path}/Adobe CS6 Master Collection/Install.app/Contents/MacOS/Install", |
|
|
args: [ |
|
|
args: [ |
|
|
'--mode=silent', "--deploymentFile=#{staged_path}/Adobe CS6 Master Collection/deploy/install-#{language}.xml" |
|
|
'--mode=silent', "--deploymentFile=#{staged_path}/Adobe CS6 Master Collection/deploy/install-#{language}.xml" |
|
@ -43,8 +47,12 @@ cask 'adobe-cs6-master-collection' do |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
uninstall_preflight do |
|
|
uninstall_preflight do |
|
|
system_command '/usr/bin/killall', |
|
|
processes = system_command '/bin/launchctl', args: ['list'] |
|
|
args: ['-kill', 'SafariNotificationAgent'] |
|
|
|
|
|
|
|
|
if processes.stdout.lines.any? { |line| line =~ %r{^\d+\t\d\tcom.apple.SafariNotificationAgent$} } |
|
|
|
|
|
system_command '/usr/bin/killall', args: ['-kill', 'SafariNotificationAgent'] |
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
system_command "#{staged_path}/Adobe CS6 Master Collection/Install.app/Contents/MacOS/Install", |
|
|
system_command "#{staged_path}/Adobe CS6 Master Collection/Install.app/Contents/MacOS/Install", |
|
|
args: [ |
|
|
args: [ |
|
|
'--mode=silent', "--deploymentFile=#{staged_path}/Adobe CS6 Master Collection/deploy/uninstall-en_US.xml" |
|
|
'--mode=silent', "--deploymentFile=#{staged_path}/Adobe CS6 Master Collection/deploy/uninstall-en_US.xml" |
|
|