37 lines
1.4 KiB
Ruby
37 lines
1.4 KiB
Ruby
cask "switchresx" do
|
|
version "4.10.1"
|
|
sha256 "637ab376d4144fc12fed7f36affe9ea43a0c5ef0742051df92cdcc61a51577ff"
|
|
|
|
url "https://www.madrau.com/data/switchresx/SwitchResX#{version.major}.zip"
|
|
appcast "https://www.madrau.com/SRXCurrentVersion#{version.major}"
|
|
name "SwitchResX"
|
|
desc "Controls screen display settings"
|
|
homepage "https://www.madrau.com/"
|
|
|
|
prefpane "SwitchResX Installer.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",
|
|
]
|
|
|
|
zap trash: [
|
|
"~/Library/Caches/fr.madrau.switchresx.app",
|
|
"~/Library/Caches/fr.madrau.switchresx.daemon",
|
|
"~/Library/Cookies/fr.madrau.switchresx.app.binarycookies",
|
|
"~/Library/Cookies/fr.madrau.switchresx.daemon.binarycookies",
|
|
"~/Library/Preferences/fr.madrau.switchresx.app.plist",
|
|
"~/Library/Preferences/fr.madrau.switchresx.daemon.plist",
|
|
"~/Library/Preferences/fr.madrau.switchres.desktop-layout.plist",
|
|
"~/Library/Saved Application State/fr.madrau.switchresx.app.savedState",
|
|
]
|
|
end
|