homebrew-cask/Casks/flash-npapi.rb

25 lines
998 B
Ruby

cask 'flash-npapi' do
version '31.0.0.108'
sha256 'bf901964a53493e076f9a8a15f5332317a32557ecf798507e5922559715184dc'
# macromedia.com was verified as official when first introduced to the cask
url "https://fpdownload.adobe.com/get/flashplayer/pdc/#{version}/install_flash_player_osx.dmg"
appcast 'http://fpdownload2.macromedia.com/get/flashplayer/update/current/xml/version_en_mac_pl.xml'
name 'Adobe Flash Player NPAPI (plugin for Safari and Firefox)'
homepage 'https://get.adobe.com/flashplayer/'
auto_updates true
pkg 'Install Adobe Flash Player.app/Contents/Resources/Adobe Flash Player.pkg'
uninstall pkgutil: 'com.adobe.pkg.FlashPlayer',
launchctl: 'com.adobe.fpsaud',
delete: '/Library/Internet Plug-Ins/Flash Player.plugin'
zap trash: [
'~/Library/Caches/Adobe/Flash Player',
'~/Library/Logs/FlashPlayerInstallManager.log',
'/Library/Internet Plug-Ins/flashplayer.xpt',
]
end