cask "wondershare-uniconverter" do arch arm: "arm_" version "16.0.1" sha256 arm: "7a4ccebc95ec662c87d9bc58050c973f91db86a0454e6c8e4d99cc074837939b", intel: "36e1fe71d1e3c2c251b80e1ff30933bb4fd634aeee4db710c9af48ac142b82b0" 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