35 lines
849 B
Ruby
35 lines
849 B
Ruby
cask "cog" do
|
|
version "2732,4131d4ea"
|
|
sha256 "cbd4649a19116f05eb7ebc486dbc983e6bb5b9a379be9664a5839364b9f34ee1"
|
|
|
|
url "https://cogcdn.cog.losno.co/Cog-#{version.csv.second}.zip"
|
|
name "Cog"
|
|
desc "Audio player"
|
|
homepage "https://cog.losno.co/"
|
|
|
|
livecheck do
|
|
url "https://cogcdn.cog.losno.co/mercury.xml"
|
|
regex(%r{/Cog[._-](\h+)\.zip}i)
|
|
strategy :sparkle do |item, regex|
|
|
match = item.url&.match(regex)
|
|
next if !item&.short_version || match.blank?
|
|
|
|
"#{item.short_version},#{match[1]}"
|
|
end
|
|
end
|
|
|
|
auto_updates true
|
|
depends_on macos: ">= :high_sierra"
|
|
|
|
app "Cog.app"
|
|
|
|
uninstall quit: "org.cogx.cog"
|
|
|
|
zap trash: [
|
|
"~/Library/Application Scripts/org.cogx.cog",
|
|
"~/Library/Application Support/Cog",
|
|
"~/Library/Caches/org.cogx.cog",
|
|
"~/Library/Preferences/org.cogx.cog.plist",
|
|
]
|
|
end
|