Files
homebrew-cask/Casks/a/affine.rb
2023-12-01 11:07:08 -05:00

31 lines
837 B
Ruby

cask "affine" do
arch arm: "arm64", intel: "x64"
version "0.10.3"
sha256 arm: "2c117b0cbc43b5fc972824fdcc1b8940cc458ed99a87df5fa5563df01010224c",
intel: "29d6efea39150648595850f6a91740f862049e7938e44c80c02767435a9e7093"
url "https://github.com/toeverything/AFFiNE/releases/download/v#{version}/affine-stable-macos-#{arch}.zip",
verified: "github.com/toeverything/AFFiNE/"
name "AFFiNE"
desc "Note editor and whiteboard"
homepage "https://affine.pro/"
livecheck do
url :url
strategy :github_latest
end
auto_updates true
depends_on macos: ">= :catalina"
app "AFFiNE.app"
zap trash: [
"~/Library/Application Support/AFFiNE",
"~/Library/Logs/AFFiNE",
"~/Library/Preferences/pro.affine.app.plist",
"~/Library/Saved Application State/pro.affine.app.savedState",
]
end