You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
2.5 KiB
47 lines
2.5 KiB
8 years ago
|
cask 'adobe-cs6-master-collection' do
|
||
|
version 'CS6'
|
||
|
sha256 '98d55be1c0a641db6d3a0b5eb902c7f3f6da3742b47d8587e241e6fdae8246b4'
|
||
10 years ago
|
|
||
|
# This Cask only works for Adobe dmgs containing the deploy folder,
|
||
|
# i.e. the Adobe Collections, not the single Product Installers!
|
||
|
|
||
|
# For correct download URL see links provided at
|
||
|
# https://helpx.adobe.com/x-productkb/policy-pricing/cs6-product-downloads.html
|
||
|
|
||
8 years ago
|
url "http://trials2.adobe.com/AdobeProducts/STAM/#{version}/osx10/MasterCollection_#{version}_LS4.dmg",
|
||
9 years ago
|
user_agent: :fake,
|
||
|
cookies: { 'MM_TRIALS' => '1234' }
|
||
10 years ago
|
name 'Adobe CS6 Master Collection' # name must exactly match directory in dmg!
|
||
9 years ago
|
homepage 'https://www.adobe.com/mena_en/products/creativesuite.html'
|
||
10 years ago
|
|
||
|
# staged_path not available in Installer/Uninstall Stanza, workaround by nesting with preflight/postflight
|
||
|
# see https://github.com/caskroom/homebrew-cask/pull/8887
|
||
|
# and https://github.com/caskroom/homebrew-versions/pull/296
|
||
|
|
||
|
preflight do
|
||
8 years ago
|
language = case MacOS.language
|
||
|
when %r{^de} then 'de_DE'
|
||
|
when 'en-GB' then 'en_GB'
|
||
|
when %r{^es} then 'es_ES'
|
||
|
when %r{^fr} then 'fr_FR'
|
||
|
when %r{^it} then 'it_IT'
|
||
|
when %r{^ja} then 'ja_JP'
|
||
|
when %r{^nl} then 'nl_NL'
|
||
|
else
|
||
|
'en_US'
|
||
|
end
|
||
|
|
||
10 years ago
|
system '/usr/bin/killall', '-kill', 'SafariNotificationAgent'
|
||
8 years ago
|
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe CS6 Master Collection/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/Adobe CS6 Master Collection/deploy/install-#{language}.xml"
|
||
|
|
||
|
FileUtils.cp "#{staged_path}/Adobe CS6 Master Collection/deploy/uninstall-en_US.xml", "#{staged_path}/uninstall.xml"
|
||
10 years ago
|
end
|
||
|
|
||
|
uninstall_preflight do
|
||
|
system '/usr/bin/killall', '-kill', 'SafariNotificationAgent'
|
||
|
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe CS6 Master Collection/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/Adobe CS6 Master Collection/deploy/uninstall-en_US.xml"
|
||
|
end
|
||
|
|
||
|
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.'
|
||
|
end
|