homebrew-cask/Casks/w/wondershare-uniconverter.rb

38 lines
1.6 KiB
Ruby

cask "wondershare-uniconverter" do
arch arm: "arm_"
version "15.0.3"
sha256 arm: "60863fcdeac1e98ecefbc9e9f54047a5b56ba0b7def8cb22b32aedb7a229d1d6",
intel: "ad8447f3ec63f542e8a626278b77e017b98b189359a93e4df647c5e9dc906ba4"
url "https://download.wondershare.com/cbs_down/uniconverter#{version.major}-mac_#{arch}#{version}_full14207.zip"
name "UniConverter"
desc "Video editing software"
homepage "https://videoconverter.wondershare.com/"
livecheck do
url "https://crm.wondershare.com/api/v1/support/14207/release-versions"
strategy :json do |json|
json["data"].map { |release| release["version_name"] }
end
end
app "Wondershare UniConverter #{version.major}.app"
zap trash: [
"/Users/Shared/.Wondershare*.dat",
"~/Library/Application Support/com.Wondershare.UniConverter#{version.major}",
"~/Library/Application Support/Wondershare UniConverter #{version.major}",
"~/Library/Application Support/wondershare",
"~/Library/Caches/com.Wondershare.UniConverter#{version.major}",
"~/Library/HTTPStorages/com.Wondershare.UniConverter#{version.major}",
"~/Library/Logs/com.Wondershare.UniConverter#{version.major}",
"~/Library/Logs/Wondershare",
"~/Library/Preferences/com.wondershare.helper_compact.plist",
"~/Library/Preferences/com.Wondershare.UniConverter#{version.major}.plist",
"~/Library/Saved Application State/com.Wondershare.UniConverter#{version.major}.savedState",
"~/Movies/Wondershare UniConverter#{version.major}",
"~/Pictures/Wondershare UniConverter#{version.major}",
]
end