2023-04-14 10:40:48 +08:00
|
|
|
cask "elgato-camera-hub" do
|
2023-08-13 03:55:14 +08:00
|
|
|
version "1.7.0.1124"
|
|
|
|
sha256 "fd5a00c0744b272ac0edfa36b4b71095c0b896f7415aa240c4f2816bb0a1fd8c"
|
2023-04-14 10:40:48 +08:00
|
|
|
|
2023-08-13 03:55:14 +08:00
|
|
|
url "https://edge.elgato.com/egc/macos/echm/#{version.major_minor}/Camera_Hub_#{version}.pkg"
|
2023-06-25 19:45:56 +08:00
|
|
|
name "Elgato Camera Hub"
|
2023-04-14 10:40:48 +08:00
|
|
|
desc "Elgato FACECAM configuration tool"
|
2023-06-25 19:45:56 +08:00
|
|
|
homepage "https://www.elgato.com/ww/en/s/downloads"
|
2023-04-14 10:40:48 +08:00
|
|
|
|
|
|
|
livecheck do
|
2023-06-25 19:45:56 +08:00
|
|
|
url "https://www.elgato.com/graphql?query=query%20contentJson(%24identifier%3A%5BString%5D%24contentType%3AString%24options%3AContentJsonOptionsInput)%7BcontentJson(identifiers%3A%24identifier%20contentType%3A%24contentType%20options%3A%24options)%7Bidentifier%20entries%7D%7D&operationName=contentJson&variables=%7B%22contentType%22%3A%22downloads%22%2C%22identifier%22%3A%5B%22downloads%22%5D%2C%22options%22%3A%7B%22level%22%3A1%7D%7D&locale=en-US"
|
|
|
|
regex(/Camera[._-]Hub[._-]v?(\d+(?:\.\d+)+)\.pkg/i)
|
2023-04-14 10:40:48 +08:00
|
|
|
end
|
|
|
|
|
2023-08-13 03:55:14 +08:00
|
|
|
depends_on macos: ">= :big_sur"
|
|
|
|
|
2023-06-25 19:45:56 +08:00
|
|
|
pkg "Camera_Hub_#{version}.pkg"
|
2023-04-14 10:40:48 +08:00
|
|
|
|
|
|
|
uninstall signal: ["TERM", "com.elgato.CameraHub"],
|
|
|
|
launchctl: "com.elgato.CameraHub",
|
|
|
|
pkgutil: "com.elgato.CameraHub.Installer",
|
|
|
|
delete: "/Applications/Elgato Camera Hub.app"
|
|
|
|
|
|
|
|
zap trash: [
|
|
|
|
"~/Library/Logs/CameraHub",
|
|
|
|
"~/Library/Preferences/com.elgato.CameraHub.plist",
|
|
|
|
]
|
|
|
|
end
|