1 cask "swiftpm-catalog" do
3 sha256 "f006f055b6eb620b0d9b5c882f9930450990fb43677f6915487818ec8bc6ee4f"
5 url "https://zeezide.com/en/products/swiftpmcatalog/archives/SwiftPM%20Catalog.app-#{version.csv.first}-v#{version.csv.second}.zip"
7 desc "Browse and search for Swift Package Manager packages"
8 homepage "https://zeezide.com/en/products/swiftpmcatalog/"
12 regex(%r{href=.*?/SwiftPM\s*Catalog\.app[._-](\d+(?:\.\d+)+)[_-]v?(\d+)\.zip}i)
13 strategy :page_match do |page, regex|
14 page.scan(regex).map { |match| "#{match[0]},#{match[1]}" }
18 depends_on macos: ">= :mojave"
20 app "SwiftPM Catalog.app"
23 "~/Library/Caches/SwiftPM Catalog",
24 "~/Library/HTTPStorages/de.zeezide.swift.SwiftPMCatalog",
25 "~/Library/org.swift.swiftpm",
26 "~/Library/Preferences/de.zeezide.swift.SwiftPMCatalog.plist",
27 "~/Library/Saved Application State/de.zeezide.swift.SwiftPMCatalog.savedState",