Browse Source

Simplify Adobe casks. (#2344)

master
Markus Reiter 9 years ago
parent
commit
213f90bb01
  1. 5
      Casks/adobe-illustrator-cc-de.rb
  2. 5
      Casks/adobe-illustrator-cc-es.rb
  3. 5
      Casks/adobe-illustrator-cc-fr.rb
  4. 5
      Casks/adobe-illustrator-cc-it.rb
  5. 5
      Casks/adobe-illustrator-cc-ja.rb
  6. 5
      Casks/adobe-illustrator-cc-nl.rb
  7. 5
      Casks/adobe-indesign-cc-de.rb
  8. 5
      Casks/adobe-indesign-cc-es.rb
  9. 5
      Casks/adobe-indesign-cc-fr.rb
  10. 5
      Casks/adobe-indesign-cc-it.rb
  11. 5
      Casks/adobe-indesign-cc-ja.rb
  12. 5
      Casks/adobe-indesign-cc-nl.rb
  13. 34
      Casks/adobe-photoshop-cc-de.rb
  14. 34
      Casks/adobe-photoshop-cc-es.rb
  15. 34
      Casks/adobe-photoshop-cc-fr.rb
  16. 34
      Casks/adobe-photoshop-cc-it.rb
  17. 34
      Casks/adobe-photoshop-cc-ja.rb
  18. 34
      Casks/adobe-photoshop-cc-nl.rb

5
Casks/adobe-illustrator-cc-de.rb

@ -14,10 +14,7 @@ cask 'adobe-illustrator-cc-de' do
preflight do
deployment_xml = "#{staged_path}/Adobe Illustrator CC 2015/Deployment/deployment.xml"
File.open(deployment_xml) do |xml_before|
contents = xml_before.read.gsub!('>en_US<', '>de_DE<')
File.open(deployment_xml, 'w+') { |xml_after| xml_after.write(contents) }
end
IO.write(deployment_xml, IO.read(deployment_xml).gsub('>en_US<', '>de_DE<'))
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe Illustrator CC 2015/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{deployment_xml}"
end

5
Casks/adobe-illustrator-cc-es.rb

@ -14,10 +14,7 @@ cask 'adobe-illustrator-cc-es' do
preflight do
deployment_xml = "#{staged_path}/Adobe Illustrator CC 2015/Deployment/deployment.xml"
File.open(deployment_xml) do |xml_before|
contents = xml_before.read.gsub!('>en_US<', '>es_ES<')
File.open(deployment_xml, 'w+') { |xml_after| xml_after.write(contents) }
end
IO.write(deployment_xml, IO.read(deployment_xml).gsub('>en_US<', '>es_ES<'))
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe Illustrator CC 2015/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{deployment_xml}"
end

5
Casks/adobe-illustrator-cc-fr.rb

@ -14,10 +14,7 @@ cask 'adobe-illustrator-cc-fr' do
preflight do
deployment_xml = "#{staged_path}/Adobe Illustrator CC 2015/Deployment/deployment.xml"
File.open(deployment_xml) do |xml_before|
contents = xml_before.read.gsub!('>en_US<', '>fr_FR<')
File.open(deployment_xml, 'w+') { |xml_after| xml_after.write(contents) }
end
IO.write(deployment_xml, IO.read(deployment_xml).gsub('>en_US<', '>fr_FR<'))
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe Illustrator CC 2015/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{deployment_xml}"
end

5
Casks/adobe-illustrator-cc-it.rb

@ -14,10 +14,7 @@ cask 'adobe-illustrator-cc-it' do
preflight do
deployment_xml = "#{staged_path}/Adobe Illustrator CC 2015/Deployment/deployment.xml"
File.open(deployment_xml) do |xml_before|
contents = xml_before.read.gsub!('>en_US<', '>it_IT<')
File.open(deployment_xml, 'w+') { |xml_after| xml_after.write(contents) }
end
IO.write(deployment_xml, IO.read(deployment_xml).gsub('>en_US<', '>it_IT<'))
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe Illustrator CC 2015/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{deployment_xml}"
end

5
Casks/adobe-illustrator-cc-ja.rb

@ -14,10 +14,7 @@ cask 'adobe-illustrator-cc-ja' do
preflight do
deployment_xml = "#{staged_path}/Adobe Illustrator CC 2015/Deployment/deployment.xml"
File.open(deployment_xml) do |xml_before|
contents = xml_before.read.gsub!('>en_US<', '>ja_JP<')
File.open(deployment_xml, 'w+') { |xml_after| xml_after.write(contents) }
end
IO.write(deployment_xml, IO.read(deployment_xml).gsub('>en_US<', '>ja_JP<'))
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe Illustrator CC 2015/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{deployment_xml}"
end

5
Casks/adobe-illustrator-cc-nl.rb

@ -14,10 +14,7 @@ cask 'adobe-illustrator-cc-nl' do
preflight do
deployment_xml = "#{staged_path}/Adobe Illustrator CC 2015/Deployment/deployment.xml"
File.open(deployment_xml) do |xml_before|
contents = xml_before.read.gsub!('>en_US<', '>nl_NL<')
File.open(deployment_xml, 'w+') { |xml_after| xml_after.write(contents) }
end
IO.write(deployment_xml, IO.read(deployment_xml).gsub('>en_US<', '>nl_NL<'))
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe Illustrator CC 2015/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{deployment_xml}"
end

5
Casks/adobe-indesign-cc-de.rb

@ -14,10 +14,7 @@ cask 'adobe-indesign-cc-de' do
preflight do
deployment_xml = "#{staged_path}/Adobe InDesign CC 2015/deploy/install.xml"
File.open(deployment_xml) do |xml_before|
contents = xml_before.read.gsub!('>en_US<', '>de_DE<')
File.open(deployment_xml, 'w+') { |xml_after| xml_after.write(contents) }
end
IO.write(deployment_xml, IO.read(deployment_xml).gsub('>en_US<', '>de_DE<'))
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe InDesign CC 2015/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{deployment_xml}"
end

5
Casks/adobe-indesign-cc-es.rb

@ -14,10 +14,7 @@ cask 'adobe-indesign-cc-es' do
preflight do
deployment_xml = "#{staged_path}/Adobe InDesign CC 2015/deploy/install.xml"
File.open(deployment_xml) do |xml_before|
contents = xml_before.read.gsub!('>en_US<', '>es_ES<')
File.open(deployment_xml, 'w+') { |xml_after| xml_after.write(contents) }
end
IO.write(deployment_xml, IO.read(deployment_xml).gsub('>en_US<', '>es_ES<'))
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe InDesign CC 2015/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{deployment_xml}"
end

5
Casks/adobe-indesign-cc-fr.rb

@ -14,10 +14,7 @@ cask 'adobe-indesign-cc-fr' do
preflight do
deployment_xml = "#{staged_path}/Adobe InDesign CC 2015/deploy/install.xml"
File.open(deployment_xml) do |xml_before|
contents = xml_before.read.gsub!('>en_US<', '>fr_FR<')
File.open(deployment_xml, 'w+') { |xml_after| xml_after.write(contents) }
end
IO.write(deployment_xml, IO.read(deployment_xml).gsub('>en_US<', '>fr_FR<'))
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe InDesign CC 2015/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{deployment_xml}"
end

5
Casks/adobe-indesign-cc-it.rb

@ -14,10 +14,7 @@ cask 'adobe-indesign-cc-it' do
preflight do
deployment_xml = "#{staged_path}/Adobe InDesign CC 2015/deploy/install.xml"
File.open(deployment_xml) do |xml_before|
contents = xml_before.read.gsub!('>en_US<', '>it_IT<')
File.open(deployment_xml, 'w+') { |xml_after| xml_after.write(contents) }
end
IO.write(deployment_xml, IO.read(deployment_xml).gsub('>en_US<', '>it_IT<'))
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe InDesign CC 2015/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{deployment_xml}"
end

5
Casks/adobe-indesign-cc-ja.rb

@ -14,10 +14,7 @@ cask 'adobe-indesign-cc-ja' do
preflight do
deployment_xml = "#{staged_path}/Adobe InDesign CC 2015/deploy/install.xml"
File.open(deployment_xml) do |xml_before|
contents = xml_before.read.gsub!('>en_US<', '>ja_JP<')
File.open(deployment_xml, 'w+') { |xml_after| xml_after.write(contents) }
end
IO.write(deployment_xml, IO.read(deployment_xml).gsub('>en_US<', '>ja_JP<'))
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe InDesign CC 2015/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{deployment_xml}"
end

5
Casks/adobe-indesign-cc-nl.rb

@ -14,10 +14,7 @@ cask 'adobe-indesign-cc-nl' do
preflight do
deployment_xml = "#{staged_path}/Adobe InDesign CC 2015/deploy/install.xml"
File.open(deployment_xml) do |xml_before|
contents = xml_before.read.gsub!('>en_US<', '>nl_NL<')
File.open(deployment_xml, 'w+') { |xml_after| xml_after.write(contents) }
end
IO.write(deployment_xml, IO.read(deployment_xml).gsub('>en_US<', '>nl_NL<'))
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe InDesign CC 2015/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{deployment_xml}"
end

34
Casks/adobe-photoshop-cc-de.rb

@ -12,26 +12,28 @@ cask 'adobe-photoshop-cc-de' do
conflicts_with cask: 'adobe-photoshop-cc'
preflight do
file = File.open "#{staged_path}/uninstall.xml", 'w'
file.puts '<?xml version="1.0" encoding="utf-8"?>
<Deployment>
<Properties>
<Property name="removeUserPrefs">0</Property>
<Property name="mediaSignature">{2614BC86-757D-4293-9E25-E4E16F370A9E}</Property>
</Properties>
<Payloads>
<Payload adobeCode="{2614BC86-757D-4293-9E25-E4E16F370A9E}">
<Action>remove</Action>
</Payload>
</Payloads>
</Deployment>'
file.close
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe Photoshop CC 2015/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/Adobe\ Photoshop\ CC\ 2015/Deployment/de_DE_Deployment.xml"
end
uninstall_preflight do
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe Photoshop CC 2015/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/uninstall.xml"
uninstall_xml = "#{staged_path}/uninstall.xml"
IO.write uninstall_xml, <<-EOF.undent
<?xml version="1.0" encoding="utf-8"?>
<Deployment>
<Properties>
<Property name="removeUserPrefs">0</Property>
<Property name="mediaSignature">{2614BC86-757D-4293-9E25-E4E16F370A9E}</Property>
</Properties>
<Payloads>
<Payload adobeCode="{2614BC86-757D-4293-9E25-E4E16F370A9E}">
<Action>remove</Action>
</Payload>
</Payloads>
</Deployment>
EOF
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe Photoshop CC 2015/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{uninstall_xml}"
end
uninstall rmdir: '/Applications/Utilities/Adobe Installers'

34
Casks/adobe-photoshop-cc-es.rb

@ -12,26 +12,28 @@ cask 'adobe-photoshop-cc-es' do
conflicts_with cask: 'adobe-photoshop-cc'
preflight do
file = File.open "#{staged_path}/uninstall.xml", 'w'
file.puts '<?xml version="1.0" encoding="utf-8"?>
<Deployment>
<Properties>
<Property name="removeUserPrefs">0</Property>
<Property name="mediaSignature">{2614BC86-757D-4293-9E25-E4E16F370A9E}</Property>
</Properties>
<Payloads>
<Payload adobeCode="{2614BC86-757D-4293-9E25-E4E16F370A9E}">
<Action>remove</Action>
</Payload>
</Payloads>
</Deployment>'
file.close
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe Photoshop CC 2015/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/Adobe\ Photoshop\ CC\ 2015/Deployment/es_ES_Deployment.xml"
end
uninstall_preflight do
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe Photoshop CC 2015/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/uninstall.xml"
uninstall_xml = "#{staged_path}/uninstall.xml"
IO.write uninstall_xml, <<-EOF.undent
<?xml version="1.0" encoding="utf-8"?>
<Deployment>
<Properties>
<Property name="removeUserPrefs">0</Property>
<Property name="mediaSignature">{2614BC86-757D-4293-9E25-E4E16F370A9E}</Property>
</Properties>
<Payloads>
<Payload adobeCode="{2614BC86-757D-4293-9E25-E4E16F370A9E}">
<Action>remove</Action>
</Payload>
</Payloads>
</Deployment>
EOF
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe Photoshop CC 2015/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{uninstall_xml}"
end
uninstall rmdir: '/Applications/Utilities/Adobe Installers'

34
Casks/adobe-photoshop-cc-fr.rb

@ -12,26 +12,28 @@ cask 'adobe-photoshop-cc-fr' do
conflicts_with cask: 'adobe-photoshop-cc'
preflight do
file = File.open "#{staged_path}/uninstall.xml", 'w'
file.puts '<?xml version="1.0" encoding="utf-8"?>
<Deployment>
<Properties>
<Property name="removeUserPrefs">0</Property>
<Property name="mediaSignature">{2614BC86-757D-4293-9E25-E4E16F370A9E}</Property>
</Properties>
<Payloads>
<Payload adobeCode="{2614BC86-757D-4293-9E25-E4E16F370A9E}">
<Action>remove</Action>
</Payload>
</Payloads>
</Deployment>'
file.close
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe Photoshop CC 2015/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/Adobe\ Photoshop\ CC\ 2015/Deployment/fr_FR_Deployment.xml"
end
uninstall_preflight do
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe Photoshop CC 2015/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/uninstall.xml"
uninstall_xml = "#{staged_path}/uninstall.xml"
IO.write uninstall_xml, <<-EOF.undent
<?xml version="1.0" encoding="utf-8"?>
<Deployment>
<Properties>
<Property name="removeUserPrefs">0</Property>
<Property name="mediaSignature">{2614BC86-757D-4293-9E25-E4E16F370A9E}</Property>
</Properties>
<Payloads>
<Payload adobeCode="{2614BC86-757D-4293-9E25-E4E16F370A9E}">
<Action>remove</Action>
</Payload>
</Payloads>
</Deployment>
EOF
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe Photoshop CC 2015/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{uninstall_xml}"
end
uninstall rmdir: '/Applications/Utilities/Adobe Installers'

34
Casks/adobe-photoshop-cc-it.rb

@ -12,26 +12,28 @@ cask 'adobe-photoshop-cc-it' do
conflicts_with cask: 'adobe-photoshop-cc'
preflight do
file = File.open "#{staged_path}/uninstall.xml", 'w'
file.puts '<?xml version="1.0" encoding="utf-8"?>
<Deployment>
<Properties>
<Property name="removeUserPrefs">0</Property>
<Property name="mediaSignature">{2614BC86-757D-4293-9E25-E4E16F370A9E}</Property>
</Properties>
<Payloads>
<Payload adobeCode="{2614BC86-757D-4293-9E25-E4E16F370A9E}">
<Action>remove</Action>
</Payload>
</Payloads>
</Deployment>'
file.close
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe Photoshop CC 2015/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/Adobe\ Photoshop\ CC\ 2015/Deployment/it_IT_Deployment.xml"
end
uninstall_preflight do
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe Photoshop CC 2015/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/uninstall.xml"
uninstall_xml = "#{staged_path}/uninstall.xml"
IO.write uninstall_xml, <<-EOF.undent
<?xml version="1.0" encoding="utf-8"?>
<Deployment>
<Properties>
<Property name="removeUserPrefs">0</Property>
<Property name="mediaSignature">{2614BC86-757D-4293-9E25-E4E16F370A9E}</Property>
</Properties>
<Payloads>
<Payload adobeCode="{2614BC86-757D-4293-9E25-E4E16F370A9E}">
<Action>remove</Action>
</Payload>
</Payloads>
</Deployment>
EOF
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe Photoshop CC 2015/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{uninstall_xml}"
end
uninstall rmdir: '/Applications/Utilities/Adobe Installers'

34
Casks/adobe-photoshop-cc-ja.rb

@ -12,26 +12,28 @@ cask 'adobe-photoshop-cc-ja' do
conflicts_with cask: 'adobe-photoshop-cc'
preflight do
file = File.open "#{staged_path}/uninstall.xml", 'w'
file.puts '<?xml version="1.0" encoding="utf-8"?>
<Deployment>
<Properties>
<Property name="removeUserPrefs">0</Property>
<Property name="mediaSignature">{2614BC86-757D-4293-9E25-E4E16F370A9E}</Property>
</Properties>
<Payloads>
<Payload adobeCode="{2614BC86-757D-4293-9E25-E4E16F370A9E}">
<Action>remove</Action>
</Payload>
</Payloads>
</Deployment>'
file.close
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe Photoshop CC 2015/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/Adobe\ Photoshop\ CC\ 2015/Deployment/ja_JP_Deployment.xml"
end
uninstall_preflight do
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe Photoshop CC 2015/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/uninstall.xml"
uninstall_xml = "#{staged_path}/uninstall.xml"
IO.write uninstall_xml, <<-EOF.undent
<?xml version="1.0" encoding="utf-8"?>
<Deployment>
<Properties>
<Property name="removeUserPrefs">0</Property>
<Property name="mediaSignature">{2614BC86-757D-4293-9E25-E4E16F370A9E}</Property>
</Properties>
<Payloads>
<Payload adobeCode="{2614BC86-757D-4293-9E25-E4E16F370A9E}">
<Action>remove</Action>
</Payload>
</Payloads>
</Deployment>
EOF
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe Photoshop CC 2015/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{uninstall_xml}"
end
uninstall rmdir: '/Applications/Utilities/Adobe Installers'

34
Casks/adobe-photoshop-cc-nl.rb

@ -12,26 +12,28 @@ cask 'adobe-photoshop-cc-nl' do
conflicts_with cask: 'adobe-photoshop-cc'
preflight do
file = File.open "#{staged_path}/uninstall.xml", 'w'
file.puts '<?xml version="1.0" encoding="utf-8"?>
<Deployment>
<Properties>
<Property name="removeUserPrefs">0</Property>
<Property name="mediaSignature">{2614BC86-757D-4293-9E25-E4E16F370A9E}</Property>
</Properties>
<Payloads>
<Payload adobeCode="{2614BC86-757D-4293-9E25-E4E16F370A9E}">
<Action>remove</Action>
</Payload>
</Payloads>
</Deployment>'
file.close
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe Photoshop CC 2015/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/Adobe\ Photoshop\ CC\ 2015/Deployment/nl_NL_Deployment.xml"
end
uninstall_preflight do
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe Photoshop CC 2015/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{staged_path}/uninstall.xml"
uninstall_xml = "#{staged_path}/uninstall.xml"
IO.write uninstall_xml, <<-EOF.undent
<?xml version="1.0" encoding="utf-8"?>
<Deployment>
<Properties>
<Property name="removeUserPrefs">0</Property>
<Property name="mediaSignature">{2614BC86-757D-4293-9E25-E4E16F370A9E}</Property>
</Properties>
<Payloads>
<Payload adobeCode="{2614BC86-757D-4293-9E25-E4E16F370A9E}">
<Action>remove</Action>
</Payload>
</Payloads>
</Deployment>
EOF
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe Photoshop CC 2015/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{uninstall_xml}"
end
uninstall rmdir: '/Applications/Utilities/Adobe Installers'

Loading…
Cancel
Save