27 lines
737 B
Ruby
27 lines
737 B
Ruby
cask "only-switch" do
|
|
version "2.3.11"
|
|
sha256 "a36e7deda76a02704e29473030d39086ef58109ae48ebc3b66392925cbe7b073"
|
|
|
|
url "https://github.com/jacklandrin/OnlySwitch/releases/download/release_#{version}/OnlySwitch.dmg"
|
|
name "OnlySwitch"
|
|
desc "System and utility switches"
|
|
homepage "https://github.com/jacklandrin/OnlySwitch"
|
|
|
|
livecheck do
|
|
url :url
|
|
regex(%r{href=["']?[^"' >]*?/tag/release[._-]v?(\d+(?:\.\d+)+)["' >]}i)
|
|
strategy :github_latest
|
|
end
|
|
|
|
depends_on macos: ">= :monterey"
|
|
|
|
app "Only Switch.app"
|
|
|
|
zap trash: [
|
|
"~/Library/Application Support/OnlySwitch",
|
|
"~/Library/Caches/jacklandrin.OnlySwitch",
|
|
"~/Library/OnlySwitch",
|
|
"~/Library/Preferences/jacklandrin.OnlySwitch.plist",
|
|
]
|
|
end
|