homebrew-cask/Casks/soulver.rb

33 lines
1.2 KiB
Ruby

cask "soulver" do
version "3.5.4,255"
sha256 "40474eb11c036de7e924c058ac27db0751a98e04676ae5058e862709aaefe88b"
url "https://soulver.app/mac/sparkle/soulver-#{version.csv.first}-#{version.csv.second}.zip"
name "Soulver"
desc "Notepad with a built-in calculator"
homepage "https://soulver.app/"
livecheck do
url "https://soulver.app/mac/sparkle/appcast.xml"
strategy :sparkle
end
auto_updates true
depends_on macos: ">= :mojave"
app "Soulver #{version.major}.app"
zap trash: [
"~/Library/Application Scripts/app.soulver.mac.QuicklookInSpotlight",
"~/Library/Application Support/app.soulver.mac",
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/app.soulver.mac.sfl2",
"~/Library/Application Support/Soulver #{version.major}",
"~/Library/Caches/app.soulver.mac",
"~/Library/Containers/app.soulver.mac.QuicklookInSpotlight",
"~/Library/Group Containers/group.app.soulver",
"~/Library/HTTPStorages/app.soulver.mac.binarycookies",
"~/Library/Preferences/app.soulver.mac.plist",
"~/Library/Saved Application State/app.soulver.mac.savedState",
]
end