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.
40 lines
1.4 KiB
40 lines
1.4 KiB
cask 'adobe-photoshop-cc-es' do
|
|
version :latest
|
|
sha256 :no_check
|
|
|
|
url 'http://trials3.adobe.com/AdobeProducts/PHSP/16/osx10/Photoshop_16_LS20.dmg',
|
|
:user_agent => :fake,
|
|
:cookies => { 'MM_TRIALS' => '1234' }
|
|
name 'Adobe Photoshop CC 2015'
|
|
homepage 'https://www.adobe.com/products/photoshop.html'
|
|
license :commercial
|
|
tags :vendor => 'Adobe'
|
|
|
|
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"
|
|
end
|
|
|
|
uninstall :rmdir => '/Applications/Utilities/Adobe Installers'
|
|
|
|
conflicts_with :cask => 'adobe-photoshop-cc'
|
|
end
|
|
|