homebrew-cask/Casks/openemu.rb

51 lines
2.7 KiB
Ruby

cask 'openemu' do
if MacOS.version <= :yosemite
version '1.0.4'
sha256 'c9c3abc2acea4ed4c1e2b62fd6868feae1719251428a79803d9aa8a0de4474ef'
else
version '2.0.6.1'
sha256 '11a405abc66996902ec16bee217bacabc661c198b7d57d458b7718625f76c5ef'
end
# github.com/OpenEmu/OpenEmu was verified as official when first introduced to the cask
url "https://github.com/OpenEmu/OpenEmu/releases/download/v#{version}/OpenEmu_#{version}.zip"
appcast 'https://github.com/OpenEmu/OpenEmu/releases.atom',
checkpoint: '2152308ed5b65919aa355bcd1aacb857a4d8ec921ab7a63d8042f6cc70d0076b'
name 'OpenEmu'
homepage 'http://openemu.org/'
app 'OpenEmu.app'
zap trash: [
'~/Library/Application Support/OpenEmu',
'~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/org.openemu.openemu.sfl*',
'~/Library/Application Support/org.openemu.OEXPCCAgent.Agents',
'~/Library/Caches/org.openemu.OpenEmu',
'~/Library/Cookies/org.openemu.OpenEmu.binarycookies',
'~/Library/Preferences/org.openemu.Atari800.plist',
'~/Library/Preferences/org.openemu.Bliss.plist',
'~/Library/Preferences/org.openemu.CrabEmu.plist',
'~/Library/Preferences/org.openemu.desmume.plist',
'~/Library/Preferences/org.openemu.FCEU.plist',
'~/Library/Preferences/org.openemu.Gambatte.plist',
'~/Library/Preferences/org.openemu.GenesisPlus.plist',
'~/Library/Preferences/org.openemu.Higan.plist',
'~/Library/Preferences/org.openemu.Mednafen.plist',
'~/Library/Preferences/org.openemu.Mupen64Plus.plist',
'~/Library/Preferences/org.openemu.NeoPop.plist',
'~/Library/Preferences/org.openemu.Nestopia.plist',
'~/Library/Preferences/org.openemu.O2EM.plist',
'~/Library/Preferences/org.openemu.OpenEmu.plist',
'~/Library/Preferences/org.openemu.Picodrive.plist',
'~/Library/Preferences/org.openemu.PPSSPP.plist',
'~/Library/Preferences/org.openemu.ProSystem.plist',
'~/Library/Preferences/org.openemu.SNES9x.plist',
'~/Library/Preferences/org.openemu.Stella.plist',
'~/Library/Preferences/org.openemu.TwoMbit.plist',
'~/Library/Preferences/org.openemu.VecXGL.plist',
'~/Library/Preferences/org.openemu.VisualBoyAdvance.plist',
'~/Library/Preferences/org.openemu.mGBA.plist',
'~/Library/Saved Application State/org.openemu.OpenEmu.savedState',
]
end