cask "mjolnir" do
  version "1.0.2"
  sha256 "eb39b9ff76258c3aa7970f70465a7c858290ce798e5b8e411cb5b7d300de16d1"

  url "https://github.com/mjolnirapp/mjolnir/releases/download/#{version}/Mjolnir.app.zip",
      verified: "github.com/mjolnirapp/mjolnir/"
  name "Mjolnir"
  desc "Lightweight automation and productivity app"
  homepage "https://mjolnir.rocks/"

  depends_on macos: ">= :sierra"

  app "Mjolnir.app"

  zap trash: [
    "~/Library/Caches/org.degutis.Mjolnir",
    "~/Library/Preferences/org.degutis.Mjolnir.plist",
    "~/Library/Saved Application State/org.degutis.Mjolnir.savedState",
    "~/.mjolnir",
  ]
end
