homebrew-cask/Casks/v/vimcal.rb

32 lines
1.0 KiB
Ruby

cask "vimcal" do
arch arm: "-arm64"
host_suffix = on_arch_conditional arm: "m1", intel: "production"
version "1.0.29"
sha256 arm: "ff607dc071fceda852f8d2a8b71df2c7460e562d63a62dde933b8674b9adcafa",
intel: "d8296528bc0fb3348261eb0fc89f79235f2e34474ba8ac3fd7c4ce4eb426baf4"
url "https://vimcal-#{host_suffix}.s3.us-west-1.amazonaws.com/Vimcal-#{version}#{arch}.dmg",
verified: "vimcal-#{host_suffix}.s3.us-west-1.amazonaws.com/"
name "Vimcal"
desc "Calendar"
homepage "https://vimcal.com/"
livecheck do
url "https://vimcal-#{host_suffix}.s3.amazonaws.com/latest-mac.yml"
strategy :electron_builder
end
auto_updates true
depends_on macos: ">= :catalina"
app "Vimcal.app"
zap trash: [
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.vimcal.app.sfl*",
"~/Library/Application Support/Vimcal",
"~/Library/Preferences/com.vimcal.app.plist",
"~/Library/Saved Application State/com.vimcal.app.savedState",
]
end