homebrew-cask/Casks/switchresx.rb

25 lines
935 B
Ruby

cask 'switchresx' do
version '4.8.2'
sha256 :no_check # required as upstream package is updated in-place
url "https://www.madrau.com/data/switchresx/SwitchResX#{version.major}.zip"
appcast 'https://www.madrau.com/srx_download/download.html'
name 'SwitchResX'
homepage 'https://www.madrau.com/'
prefpane 'SwitchResX.app/Contents/Resources/SwitchResX.prefPane'
uninstall quit: [
'fr.madrau.switchresx.app',
'fr.madrau.switchresx.daemon', # note, daemon does not :quit cleanly
],
signal: [
['INT', 'fr.madrau.switchresx.daemon'],
['KILL', 'fr.madrau.switchresx.daemon'],
],
delete: [
'/Library/ScriptingAdditions/SwitchResX Extensions.osax',
'/Library/ScriptingAdditions/SwitchResX Menu.osax',
]
end