homebrew-cask/Casks/adobe-air.rb

26 lines
808 B
Ruby
Raw Normal View History

class AdobeAir < Cask
2014-09-23 00:15:06 +08:00
version '15.0'
sha256 '07f7ae83b9d9005c830ce7592d651c378e235a20f62da692410035a703af20c7'
2014-06-16 04:14:30 +08:00
url "http://airdownload.adobe.com/air/mac/download/#{version}/AdobeAIR.dmg"
homepage 'https://get.adobe.com/air/'
2014-10-01 23:32:25 +08:00
license :unknown
2014-06-16 04:14:30 +08:00
caskroom_only true
2014-02-23 10:13:52 +08:00
2014-09-09 20:55:26 +08:00
postflight do
system '/usr/bin/sudo', '-E', '--',
"#{destination_path}/Adobe AIR Installer.app/Contents/MacOS/Adobe AIR Installer", '-silent'
2013-10-24 03:30:24 +08:00
end
uninstall :script => {
:executable => 'Adobe AIR Installer.app/Contents/MacOS/Adobe AIR Installer',
:args => %w[-uninstall]
}
2014-10-11 22:22:43 +08:00
zap :delete => [
'~/Library/Application Support/Adobe/AIR',
'~/Library/Caches/com.adobe.air.ApplicationInstaller',
],
:rmdir => '~/Library/Application Support/Adobe/'
end