phinze/homebrew-cask

View on GitHub
Casks/d/dropdmg.rb

Summary

Maintainability
A
35 mins
Test Coverage
cask "dropdmg" do
  version "3.6.7"
  sha256 "22ac8e669b96cdf460757b7d1eb90755fd2a89c9da34d861b74b5a05797123ae"

  url "https://c-command.com/downloads/DropDMG-#{version}.dmg"
  name "DropDMG"
  desc "Create DMGs and other archives"
  homepage "https://c-command.com/dropdmg/"

  livecheck do
    url :homepage
    regex(%r{href=.*?/DropDMG[._-]v?(\d+(?:\.\d+)+)\.dmg}i)
  end

  app "DropDMG.app"

  zap trash: [
    "~/Library/Application Support/DropDMG",
    "~/Library/Automator/DropDMG.action",
    "~/Library/Automator/Expand Disk Image.action",
    "~/Library/Caches/com.c-command.DropDMG",
    "~/Library/Preferences/com.c-command.DropDMG.plist",
  ]
end