homebrew-cask/Casks/l/lightkey.rb

39 lines
1.2 KiB
Ruby

cask "lightkey" do
version "4.5,62ee0cc022-1695367347"
sha256 "a277768206cf6650cd501902c7d11a2c10951336af0489f613f41d1279bec2ba"
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"
regex(%r{/Lightkey[._-]v?(\d+(?:-\d+)+)/([^/]+)/LightkeyInstaller\.zip}i)
strategy :header_match do |headers, regex|
headers["location"].scan(regex).map do |match|
"#{match[0].tr("-", ".")},#{match[1]}"
end
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