39 lines
1.2 KiB
Ruby
39 lines
1.2 KiB
Ruby
cask "lightkey" do
|
|
version "4.2.2,e02921ae2d-1678116850"
|
|
sha256 "4bd765e19937f03076bc2640a9bb5cc92225cb748313a0cca19522d68b44ea50"
|
|
|
|
url "https://lightkeyapp.com/media/pages/download/Lightkey-#{version.csv.first.dots_to_hyphens}/#{version.csv.second}/LightkeyInstaller.zip"
|
|
name "Lightkey"
|
|
desc "DMX lighting control"
|
|
homepage "https://lightkeyapp.com/"
|
|
|
|
livecheck do
|
|
url "https://lightkeyapp.com/en/download"
|
|
strategy :header_match do |headers|
|
|
match = headers["location"].match(%r{/Lightkey[._-]v?(\d+(?:-\d+)+)/([^/]+)/LightkeyInstaller\.zip}i)
|
|
next if match.blank?
|
|
|
|
"#{match[1].tr("-", ".")},#{match[2]}"
|
|
end
|
|
end
|
|
|
|
auto_updates true
|
|
depends_on macos: ">= :big_sur"
|
|
|
|
pkg "LightkeyInstaller.pkg"
|
|
|
|
uninstall delete: "/Applications/Lightkey.app",
|
|
pkgutil: [
|
|
"de.monospc.lightkey.pkg.App",
|
|
"de.monospc.lightkey.pkg.documentation",
|
|
"de.monospc.lightkey.pkg.OLA",
|
|
]
|
|
|
|
zap trash: [
|
|
"~/Library/Application Support/Lightkey",
|
|
"~/Library/Caches/de.monospc.Lightkey",
|
|
"~/Library/Logs/Lightkey OLA.log",
|
|
"~/Library/Preferences/de.monospc.Lightkey.plist",
|
|
]
|
|
end
|