homebrew-cask/Casks/z/zettlr.rb

25 lines
848 B
Ruby

cask "zettlr" do
arch arm: "arm64", intel: "x64"
version "3.0.3"
sha256 arm: "0f4e45815309223623d3a5b798b12014dd71d77144a978f13b3f2ea7fcf63aa0",
intel: "e7ec0ecb50917c155308cf67606f22b46e39c08c25a115d487626d310af08114"
url "https://github.com/Zettlr/Zettlr/releases/download/v#{version}/Zettlr-#{version}-#{arch}.dmg"
name "Zettlr"
desc "Open-source markdown editor"
homepage "https://github.com/Zettlr/Zettlr/"
depends_on macos: ">= :high_sierra"
app "Zettlr.app"
zap trash: [
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.zettlr.app.sfl*",
"~/Library/Application Support/zettlr",
"~/Library/Logs/Zettlr",
"~/Library/Preferences/com.zettlr.app.plist",
"~/Library/Saved Application State/com.zettlr.app.savedState",
]
end