2013-01-11 03:46:44 +08:00
|
|
|
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"
|
2012-12-30 12:34:34 +08:00
|
|
|
homepage 'https://get.adobe.com/air/'
|
2014-10-01 23:32:25 +08:00
|
|
|
license :unknown
|
2014-06-16 04:14:30 +08:00
|
|
|
|
2014-01-18 10:35:30 +08:00
|
|
|
caskroom_only true
|
2014-02-23 10:13:52 +08:00
|
|
|
|
2014-09-09 20:55:26 +08:00
|
|
|
postflight do
|
2014-03-01 22:16:57 +08:00
|
|
|
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
|
|
|
|
|
2014-01-18 10:35:30 +08:00
|
|
|
uninstall :script => {
|
|
|
|
:executable => 'Adobe AIR Installer.app/Contents/MacOS/Adobe AIR Installer',
|
|
|
|
:args => %w[-uninstall]
|
|
|
|
}
|
|
|
|
end
|