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

38 lines
1.6 KiB
Ruby

cask "wondershare-uniconverter" do
arch arm: "arm_"
version "15.5.1"
sha256 arm: "e07e9823648f0ab3a4526ff5eea1a2655737380e117ac3c41433d37a626bc747",
intel: "b66d83218375cd831400806155d6dc1f2236dc0625628b7cfac934288e3a44e5"
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