Add Adobe After Effects (#23900)
Signed-off-by: Daniel Bayley <daniel.bayley@me.com>
This commit is contained in:
parent
6bf605fd28
commit
f75e5f7a47
|
@ -0,0 +1,74 @@
|
|||
cask 'adobe-after-effects-cc' do
|
||||
version '13.5'
|
||||
sha256 '398f9401f524ac10462b2b8cd91389b2b6aee841bd328b6daeaa8fa232bee41a'
|
||||
|
||||
language('en', default: true) { 'en_US' }
|
||||
language('en-GB') { 'en_GB' }
|
||||
language('en-AE') { 'en_AE' }
|
||||
language('en-IL') { 'en_IL' }
|
||||
language('fr') { 'fr_FR' }
|
||||
language('fr-CA') { 'fr_CA' }
|
||||
language('fr-MA') { 'fr_MA' }
|
||||
language('de') { 'de_DE' }
|
||||
language('es') { 'es_ES' }
|
||||
language('es-MX') { 'es_MX' }
|
||||
language('it') { 'it_IT' }
|
||||
language('ja') { 'ja_JP' }
|
||||
language('ko') { 'ko_KR' }
|
||||
language('pt') { 'pt_BR' }
|
||||
language('zh') { 'zh_CN' }
|
||||
language('ru') { 'ru_RU' }
|
||||
|
||||
url "http://trials3.adobe.com/AdobeProducts/AEFT/#{version.dots_to_underscores}/osx10-64/AfterEffects_#{version.dots_to_underscores}_LS20.dmg",
|
||||
user_agent: :fake,
|
||||
cookies: { 'MM_TRIALS' => '1234' }
|
||||
name 'Adobe After Effects CC 2015'
|
||||
homepage 'https://www.adobe.com/uk/products/aftereffects.html'
|
||||
license :commercial
|
||||
|
||||
media_signature = '147EC100-14BE-45EF-AB42-35BAEE7D02F0'
|
||||
|
||||
preflight do
|
||||
install_xml = "#{staged_path}/install.xml"
|
||||
|
||||
IO.write install_xml, <<-EOS.undent
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Deployment>
|
||||
<Properties>
|
||||
<Property name="INSTALLDIR">[AdobeProgramFiles]</Property>
|
||||
<Property name="installLanguage">#{language}</Property>
|
||||
</Properties>
|
||||
<Payloads>
|
||||
<Payload adobeCode="{#{media_signature}}">
|
||||
<Action>install</Action>
|
||||
</Payload>
|
||||
</Payloads>
|
||||
</Deployment>
|
||||
EOS
|
||||
|
||||
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe After Effects CC 2015/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{install_xml}"
|
||||
end
|
||||
|
||||
uninstall_preflight do
|
||||
uninstall_xml = "#{staged_path}/uninstall.xml"
|
||||
|
||||
IO.write uninstall_xml, <<-EOS.undent
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Deployment>
|
||||
<Properties>
|
||||
<Property name="removeUserPrefs">0</Property>
|
||||
<Property name="mediaSignature">{#{media_signature}}</Property>
|
||||
</Properties>
|
||||
<Payloads>
|
||||
<Payload adobeCode="{#{media_signature}}">
|
||||
<Action>remove</Action>
|
||||
</Payload>
|
||||
</Payloads>
|
||||
</Deployment>
|
||||
EOS
|
||||
|
||||
system '/usr/bin/sudo', '-E', '--', "#{staged_path}/Adobe After Effects CC 2015/Install.app/Contents/MacOS/Install", '--mode=silent', "--deploymentFile=#{uninstall_xml}"
|
||||
end
|
||||
|
||||
uninstall rmdir: '/Applications/Utilities/Adobe Installers'
|
||||
end
|
Loading…
Reference in New Issue