Browse Source

Adobe Creative Suite 6 Design Standard: Use system language. (#2571)

master
Markus Reiter 9 years ago
committed by GitHub
parent
commit
5ff2958f7e
  1. 26
      Casks/adobe-cs6-design-standard.rb
  2. 33
      Casks/adobe-design-standard-cs6-es.rb
  3. 33
      Casks/adobe-design-standard-cs6-fr.rb
  4. 33
      Casks/adobe-design-standard-cs6-it.rb
  5. 33
      Casks/adobe-design-standard-cs6-ja.rb
  6. 33
      Casks/adobe-design-standard-cs6-nl.rb
  7. 33
      Casks/adobe-design-standard-cs6.rb

26
Casks/adobe-design-standard-cs6-de.rb → Casks/adobe-cs6-design-standard.rb

@ -1,6 +1,6 @@
cask 'adobe-design-standard-cs6-de' do cask 'adobe-cs6-design-standard' do
version :latest version 'CS6'
sha256 :no_check sha256 '9d15f3eaa2866a75353a27ebbcc1999782ffcafa3cf34c70b50477980b861283'
# This Cask only works for Adobe dmgs containing the deploy folder, # This Cask only works for Adobe dmgs containing the deploy folder,
# i.e. the Adobe Collections, not the single Product Installers! # i.e. the Adobe Collections, not the single Product Installers!
@ -8,7 +8,7 @@ cask 'adobe-design-standard-cs6-de' do
# For correct download URL see links provided at # For correct download URL see links provided at
# https://helpx.adobe.com/x-productkb/policy-pricing/cs6-product-downloads.html # https://helpx.adobe.com/x-productkb/policy-pricing/cs6-product-downloads.html
url 'http://trials2.adobe.com/AdobeProducts/DSGN/CS6/osx10/DesignStandard_CS6_LS4.dmg', url "http://trials2.adobe.com/AdobeProducts/DSGN/#{version}/osx10/DesignStandard_#{version}_LS4.dmg",
user_agent: :fake, user_agent: :fake,
cookies: { 'MM_TRIALS' => '1234' } cookies: { 'MM_TRIALS' => '1234' }
name 'Adobe CS6 Design Standard' # name must exactly match directory in dmg! name 'Adobe CS6 Design Standard' # name must exactly match directory in dmg!
@ -20,13 +20,27 @@ cask 'adobe-design-standard-cs6-de' do
# and https://github.com/caskroom/homebrew-versions/pull/296 # and https://github.com/caskroom/homebrew-versions/pull/296
preflight do 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/killall', '-kill', 'SafariNotificationAgent'
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe CS6 Design Standard/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/Adobe CS6 Design Standard/deploy/install-de_DE.xml" system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe CS6 Design Standard/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/Adobe CS6 Design Standard/deploy/install-#{language}.xml"
FileUtils.cp "#{staged_path}/Adobe CS6 Design Standard/deploy/uninstall-#{language}.xml", "#{staged_path}/uninstall.xml"
end end
uninstall_preflight do uninstall_preflight do
system '/usr/bin/killall', '-kill', 'SafariNotificationAgent' system '/usr/bin/killall', '-kill', 'SafariNotificationAgent'
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe CS6 Design Standard/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/Adobe CS6 Design Standard/deploy/uninstall-de_DE.xml" system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe CS6 Design Standard/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/uninstall.xml"
end 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.' 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.'

33
Casks/adobe-design-standard-cs6-es.rb

@ -1,33 +0,0 @@
cask 'adobe-design-standard-cs6-es' do
version :latest
sha256 :no_check
# 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/DSGN/CS6/osx10/DesignStandard_CS6_LS4.dmg',
user_agent: :fake,
cookies: { 'MM_TRIALS' => '1234' }
name 'Adobe CS6 Design Standard' # name must exactly match directory in dmg!
homepage 'https://www.adobe.com/mena_en/products/creativesuite.html'
license :commercial
# 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
system '/usr/bin/killall', '-kill', 'SafariNotificationAgent'
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe CS6 Design Standard/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/Adobe CS6 Design Standard/deploy/install-es_ES.xml"
end
uninstall_preflight do
system '/usr/bin/killall', '-kill', 'SafariNotificationAgent'
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe CS6 Design Standard/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/Adobe CS6 Design Standard/deploy/uninstall-es_ES.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

33
Casks/adobe-design-standard-cs6-fr.rb

@ -1,33 +0,0 @@
cask 'adobe-design-standard-cs6-fr' do
version :latest
sha256 :no_check
# 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/DSGN/CS6/osx10/DesignStandard_CS6_LS4.dmg',
user_agent: :fake,
cookies: { 'MM_TRIALS' => '1234' }
name 'Adobe CS6 Design Standard' # name must exactly match directory in dmg!
homepage 'https://www.adobe.com/mena_en/products/creativesuite.html'
license :commercial
# 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
system '/usr/bin/killall', '-kill', 'SafariNotificationAgent'
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe CS6 Design Standard/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/Adobe CS6 Design Standard/deploy/install-fr_FR.xml"
end
uninstall_preflight do
system '/usr/bin/killall', '-kill', 'SafariNotificationAgent'
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe CS6 Design Standard/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/Adobe CS6 Design Standard/deploy/uninstall-fr_FR.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

33
Casks/adobe-design-standard-cs6-it.rb

@ -1,33 +0,0 @@
cask 'adobe-design-standard-cs6-it' do
version :latest
sha256 :no_check
# 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/DSGN/CS6/osx10/DesignStandard_CS6_LS4.dmg',
user_agent: :fake,
cookies: { 'MM_TRIALS' => '1234' }
name 'Adobe CS6 Design Standard' # name must exactly match directory in dmg!
homepage 'https://www.adobe.com/mena_en/products/creativesuite.html'
license :commercial
# 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
system '/usr/bin/killall', '-kill', 'SafariNotificationAgent'
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe CS6 Design Standard/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/Adobe CS6 Design Standard/deploy/install-it_IT.xml"
end
uninstall_preflight do
system '/usr/bin/killall', '-kill', 'SafariNotificationAgent'
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe CS6 Design Standard/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/Adobe CS6 Design Standard/deploy/uninstall-it_IT.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

33
Casks/adobe-design-standard-cs6-ja.rb

@ -1,33 +0,0 @@
cask 'adobe-design-standard-cs6-ja' do
version :latest
sha256 :no_check
# 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/DSGN/CS6/osx10/DesignStandard_CS6_LS16.dmg',
user_agent: :fake,
cookies: { 'MM_TRIALS' => '1234' }
name 'Adobe CS6 Design Standard' # name must exactly match directory in dmg!
homepage 'https://www.adobe.com/mena_en/products/creativesuite.html'
license :commercial
# 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
system '/usr/bin/killall', '-kill', 'SafariNotificationAgent'
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe CS6 Design Standard/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/Adobe CS6 Design Standard/deploy/install-ja_JP.xml"
end
uninstall_preflight do
system '/usr/bin/killall', '-kill', 'SafariNotificationAgent'
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe CS6 Design Standard/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/Adobe CS6 Design Standard/deploy/uninstall-ja_JP.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

33
Casks/adobe-design-standard-cs6-nl.rb

@ -1,33 +0,0 @@
cask 'adobe-design-standard-cs6-nl' do
version :latest
sha256 :no_check
# 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/DSGN/CS6/osx10/DesignStandard_CS6_LS4.dmg',
user_agent: :fake,
cookies: { 'MM_TRIALS' => '1234' }
name 'Adobe CS6 Design Standard' # name must exactly match directory in dmg!
homepage 'https://www.adobe.com/mena_en/products/creativesuite.html'
license :commercial
# 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
system '/usr/bin/killall', '-kill', 'SafariNotificationAgent'
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe CS6 Design Standard/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/Adobe CS6 Design Standard/deploy/install-nl_NL.xml"
end
uninstall_preflight do
system '/usr/bin/killall', '-kill', 'SafariNotificationAgent'
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe CS6 Design Standard/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/Adobe CS6 Design Standard/deploy/uninstall-nl_NL.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

33
Casks/adobe-design-standard-cs6.rb

@ -1,33 +0,0 @@
cask 'adobe-design-standard-cs6' do
version :latest
sha256 :no_check
# 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/DSGN/CS6/osx10/DesignStandard_CS6_LS16.dmg',
user_agent: :fake,
cookies: { 'MM_TRIALS' => '1234' }
name 'Adobe CS6 Design Standard' # name must exactly match directory in dmg!
homepage 'https://www.adobe.com/mena_en/products/creativesuite.html'
license :commercial
# 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
system '/usr/bin/killall', '-kill', 'SafariNotificationAgent'
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe CS6 Design Standard/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/Adobe CS6 Design Standard/deploy/install-en_US.xml"
end
uninstall_preflight do
system '/usr/bin/killall', '-kill', 'SafariNotificationAgent'
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe CS6 Design Standard/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/Adobe CS6 Design Standard/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
Loading…
Cancel
Save