homebrew-cask/Casks/o/one-switch.rb

30 lines
1.1 KiB
Ruby

cask "one-switch" do
version "1.34.2,413"
sha256 "05d7d7d866613462e4dad2c836ae5b4109058e8a4b0b7b44284a657aa4fa64a3"
url "https://fireball.studio/media/uploads/files/OneSwitchOfficial-#{version.csv.second}.dmg"
name "One Switch"
desc "All system and utility switches in one place"
homepage "https://fireball.studio/oneswitch"
livecheck do
url "https://fireball.studio/api/release_manager/downloads/studio.fireball.OneSwitchOfficial.dmg"
strategy :extract_plist
end
depends_on macos: ">= :catalina"
app "One Switch.app"
zap trash: [
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/studio.fireball.oneswitch.sfl*",
"~/Library/Application Support/One Switch",
"~/Library/Application Support/studio.fireball.OneSwitch",
"~/Library/Caches/studio.fireball.OneSwitch",
"~/Library/HTTPStorages/studio.fireball.OneSwitch",
"~/Library/HTTPStorages/studio.fireball.OneSwitch.binarycookies",
"~/Library/Preferences/studio.fireball.OneSwitch.plist",
"~/Library/WebKit/studio.fireball.OneSwitch",
]
end