Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imaging-edge-webcam 120_2403a,xB4KucKqdT (new cask) #198845

Merged
merged 1 commit into from
Jan 30, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions Casks/i/imaging-edge-webcam.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
cask "imaging-edge-webcam" do
version "120_2403a,xB4KucKqdT"
sha256 "70f4558ad5ec37127ed58b755bde1acb268edf88b5eba61a17388641215da9fd"

url "https://di.update.sony.net/NEX/#{version.csv.second}/IEW#{version.csv.first}.dmg",
verified: "di.update.sony.net/NEX/"
name "Sony Imaging Edge Webcam"
desc "Use your Sony camera as a high-quality webcam"
homepage "https://support.d-imaging.sony.co.jp/app/webcam/en/"

livecheck do
url "https://support.d-imaging.sony.co.jp/disoft_DL/webcam/mac?fm=us"
regex(%r{/([a-z0-9]+)/IEW(\d+_\d+[a-z]?)\.dmg}i)
strategy :header_match do |headers, regex|
match = headers["location"]&.scan(regex)&.flatten
next if match.blank?

"#{match[1]},#{match[0]}"
end
end

depends_on macos: ">= :ventura"

pkg "IEW_INST.pkg"

# The pkg installs a system extension which cannot be uninstalled automatically
# at this time. Once this limitation is removed, the extension can be uninstalled
# using: `systemextensionsctl uninstall "com.sony.imagingedge.iew.CameraExt"`.
# Ref: https://github.com/Homebrew/homebrew-cask/pull/198845#discussion_r1922162342
uninstall quit: "com.sony.imagingedge.iew",
pkgutil: "com.sony.Webcam"

# No zap stanza required
end
Loading