mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
The migration of `orka.rb` and then `o*.rb` has worked well without complaint so: let's move everything else, too.
41 lines
1.3 KiB
Ruby
41 lines
1.3 KiB
Ruby
cask "ptpwebcam" do
|
|
version "1.3.2"
|
|
sha256 "3945f3fdda5b438584b769ee5d2e99a4d7cf7869db348c24ee387f033c8f02cc"
|
|
|
|
url "https://github.com/dognotdog/ptpwebcam/releases/download/v#{version}/PTP_Webcam-v#{version}.pkg",
|
|
verified: "github.com/dognotdog/ptpwebcam/"
|
|
name "PTP Webcam"
|
|
desc "DSLR live view video plugin"
|
|
homepage "https://ptpwebcam.org/"
|
|
|
|
livecheck do
|
|
url :url
|
|
regex(/^v?(\d+(?:\.\d+)+)$/i)
|
|
end
|
|
|
|
pkg "PTP_Webcam-v#{version}.pkg"
|
|
|
|
uninstall pkgutil: [
|
|
"org.ptpwebcam.pkg.EnableChrome",
|
|
"org.ptpwebcam.pkg.EnableSkype",
|
|
"org.ptpwebcam.pkg.EnableTeams",
|
|
"org.ptpwebcam.pkg.EnableZoom",
|
|
"org.ptpwebcam.pkg.PTPWebcam",
|
|
"org.ptpwebcam.pkg.RemoveEOSWebcam",
|
|
],
|
|
launchctl: [
|
|
"org.ptpwebcam.PtpWebcamAgent",
|
|
"org.ptpwebcam.PtpWebcamAssistant",
|
|
],
|
|
delete: [
|
|
"/Library/CoreMediaIO/Plug-ins/DAL/PTPWebcamDALPlugin.plugin",
|
|
"/Library/LaunchDaemons/org.ptpwebcam.PtpWebcamAssistant.plist",
|
|
]
|
|
|
|
zap trash: [
|
|
"~/Library/Caches/org.ptpwebcam.PtpWebcamAgent",
|
|
"~/Library/HTTPStorages/org.ptpwebcam.PtpWebcamAgent",
|
|
"~/Library/Preferences/org.ptpwebcam.PtpWebcamAgent.plist",
|
|
]
|
|
end
|