excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / s / switchresx.rb
blob6f09fe150067c02337a5630a71854308322ab0bd
1 cask "switchresx" do
2   version "4.13.5"
3   sha256 :no_check # required as upstream package is updated in-place
5   url "https://www.madrau.com/data/switchresx/SwitchResX#{version.major}.zip"
6   name "SwitchResX"
7   desc "Controls screen display settings"
8   homepage "https://www.madrau.com/"
10   livecheck do
11     url "https://www.madrau.com/srx_download/download.html"
12     regex(/latest version \((\d+(?:\.\d+)+)\)/i)
13   end
15   auto_updates true
17   prefpane "SwitchResX Installer.app/Contents/Plugins/SwitchResX.prefPane"
19   uninstall launchctl: "fr.madrau.switchresx.helper",
20             quit:      [
21               "fr.madrau.switchresx.app",
22               "fr.madrau.switchresx.daemon", # note, daemon does not :quit cleanly
23             ],
24             signal:    [
25               ["INT", "fr.madrau.switchresx.daemon"],
26               ["KILL", "fr.madrau.switchresx.daemon"],
27             ],
28             delete:    [
29               "/Library/ScriptingAdditions/SwitchResX Extensions.osax",
30               "/Library/ScriptingAdditions/SwitchResX Menu.osax",
31             ]
33   zap trash: [
34     "~/Library/Caches/fr.madrau.switchresx.app",
35     "~/Library/Caches/fr.madrau.switchresx.daemon",
36     "~/Library/Cookies/fr.madrau.switchresx.app.binarycookies",
37     "~/Library/Cookies/fr.madrau.switchresx.daemon.binarycookies",
38     "~/Library/Preferences/fr.madrau.switchres.desktop-layout.plist",
39     "~/Library/Preferences/fr.madrau.switchresx.app.plist",
40     "~/Library/Preferences/fr.madrau.switchresx.daemon.plist",
41     "~/Library/Saved Application State/fr.madrau.switchresx.app.savedState",
42   ]
43 end