39 lines
1.2 KiB
Ruby
39 lines
1.2 KiB
Ruby
cask "lightkey" do
|
|
version "3.8.3,6a381dabf4-1639498319"
|
|
sha256 "cbe572d9ed9bb7dcb70ae03c11759f7d40090153b0888b37d3dffb2288451019"
|
|
|
|
url "https://lightkeyapp.com/media/pages/download/Lightkey-#{version.before_comma.dots_to_hyphens}/#{version.after_comma}/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: ">= :catalina"
|
|
|
|
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
|