phinze/homebrew-cask

View on GitHub
Casks/g/garagesale.rb

Summary

Maintainability
A
35 mins
Test Coverage
cask "garagesale" do
  version "9.8.1"
  sha256 "1e4f75a0fc2bdb0b8925d00ff7a2817be9154d5b947cb3e7c6fd55dce5e9c34f"

  url "https://downloads.iwascoding.com/downloads/GarageSale_#{version}.dmg"
  name "GarageSale"
  desc "Manage eBay Listings"
  homepage "https://www.iwascoding.com/GarageSale/"

  livecheck do
    url "https://www.iwascoding.com/GarageSale/Downloads.html"
    regex(/href=.*?GarageSale[._-]v?(\d+(?:\.\d+)+)\.dmg/i)
  end

  depends_on macos: ">= :sierra"

  app "GarageSale.app"

  zap trash: [
    "~/Library/Application Scripts/com.iwascoding.garagesale*",
    "~/Library/Caches/com.apple.helpd/Generated/com.iwascoding.garagesale*",
    "~/Library/Containers/com.iwascoding.garagesale*",
  ]
end