30 lines
991 B
Ruby
30 lines
991 B
Ruby
cask "grandtotal" do
|
|
version "8.1.2.15"
|
|
sha256 "1f0262354631ce5ea5947e2753dc70dea152016f655faa21794fad46fa2b11b4"
|
|
|
|
url "https://www.mediaatelier.com/GrandTotal#{version.major}/GrandTotal_#{version}.dmg"
|
|
name "GrandTotal"
|
|
desc "Create invoices and estimates"
|
|
homepage "https://www.mediaatelier.com/GrandTotal#{version.major}/"
|
|
|
|
livecheck do
|
|
url "https://www.mediaatelier.com/GrandTotal#{version.major}/feed.php"
|
|
regex(/GrandTotal[._-]v?(\d+(?:\.\d+)+)\.dmg/i)
|
|
strategy :sparkle do |items, regex|
|
|
items.map { |item| item.url[regex, 1] }
|
|
end
|
|
end
|
|
|
|
depends_on macos: ">= :high_sierra"
|
|
|
|
app "GrandTotal.app"
|
|
|
|
zap trash: [
|
|
"~/Library/Application Support/com.mediaatelier.GrandTotal3",
|
|
"~/Library/Caches/com.mediaatelier.GrandTotal3",
|
|
"~/Library/HTTPStorages/com.mediaatelier.GrandTotal3",
|
|
"~/Library/Preferences/com.mediaatelier.GrandTotal3.plist",
|
|
"~/Library/Saved Application State/com.mediaatelier.GrandTotal3.savedState",
|
|
]
|
|
end
|