cask "hackmd" do
  version "0.1.0"
  sha256 "681051aa8a89ce2f3a0b2c374fa8d3d6dbf43be7464307749ff029df7c4eed7a"

  url "https://github.com/hackmdio/hackmd-desktop/releases/download/v#{version}/HackMD-#{version}.dmg"
  name "HackMD"
  desc "Desktop Software for HackMD Note-Taking and Collaboration"
  homepage "https://github.com/hackmdio/hackmd-desktop"

  app "HackMD.app"

  zap trash: [
    "~/Library/Application Support/HackMD",
    "~/Library/Saved Application State/com.hackmd.desktop.savedState",
  ]
end
