Skip to content

Commit

Permalink
Adobe Creative Suite 6 Design Web Premium: Use system language. (Home…
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus authored Sep 12, 2016
1 parent 5ff2958 commit fe9320c
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 204 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
cask 'adobe-design-web-premium-cs6-de' do
version :latest
sha256 :no_check
cask 'adobe-cs6-design-web-premium' do
version 'CS6'
sha256 '117cf706d383eef3e75c6678fbe042a8e7f7abec6a64537126f938689dad826e'

# 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

url 'http://trials2.adobe.com/AdobeProducts/DSST/CS6/osx10/DesignWebPremium_CS6_LS4.dmg',
url "http://trials2.adobe.com/AdobeProducts/DSST/#{version}/osx10/DesignWebPremium_#{version}_LS4.dmg",
user_agent: :fake,
cookies: { 'MM_TRIALS' => '1234' }
name 'Adobe CS6 Design and Web Premium' # name must exactly match directory in dmg!
Expand All @@ -20,13 +20,27 @@
# and https://github.com/caskroom/homebrew-versions/pull/296

preflight do
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

system '/usr/bin/killall', '-kill', 'SafariNotificationAgent'
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe CS6 Design and Web Premium/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/Adobe CS6 Design and Web Premium/deploy/install-de_DE.xml"
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe CS6 Design and Web Premium/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/Adobe CS6 Design and Web Premium/deploy/install-#{language}.xml"

FileUtils.cp "#{staged_path}/Adobe CS6 Design and Web Premium/deploy/uninstall-#{language}.xml" "#{staged_path}/uninstall.xml"
end

uninstall_preflight do
system '/usr/bin/killall', '-kill', 'SafariNotificationAgent'
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe CS6 Design and Web Premium/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/Adobe CS6 Design and Web Premium/deploy/uninstall-de_DE.xml"
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe CS6 Design and Web Premium/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/uninstall.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.'
Expand Down
33 changes: 0 additions & 33 deletions Casks/adobe-design-web-premium-cs6-es.rb

This file was deleted.

33 changes: 0 additions & 33 deletions Casks/adobe-design-web-premium-cs6-fr.rb

This file was deleted.

33 changes: 0 additions & 33 deletions Casks/adobe-design-web-premium-cs6-it.rb

This file was deleted.

33 changes: 0 additions & 33 deletions Casks/adobe-design-web-premium-cs6-ja.rb

This file was deleted.

33 changes: 0 additions & 33 deletions Casks/adobe-design-web-premium-cs6-nl.rb

This file was deleted.

33 changes: 0 additions & 33 deletions Casks/adobe-design-web-premium-cs6.rb

This file was deleted.

0 comments on commit fe9320c

Please sign in to comment.