cask "ximalaya" do version "4.0.6,GKwRIUELSRjHACAAAANJ7rdy,3ff8,50,2A" sha256 "f0206cf4320068d65edc0d0277f7cbb8b251c4688109778124bf9076ecd5e26e" url "https://nativedl.pcdn.xmcdn.com/storages/#{version.csv.third}-audiofreehighqps/#{version.csv.fourth}/#{version.csv.fifth}/#{version.csv.second}.dmg?ct=application/octet-stream&filename=Ximalaya_#{version.csv.first}_x64_c_99", verified: "nativedl.pcdn.xmcdn.com/storages/" name "ximalaya" name "喜马拉雅" desc "Platform for podcasting and audio-sharing" homepage "https://www.ximalaya.com/" livecheck do url "https://www.ximalaya.com/down/lite/v2?client=mac&channelId=99" regex(%r{storages/(.+)-aud.*?/(.+)/(.+)/(.+)\.dmg.*?Ximalaya[._-](\d+(?:\.\d+)+)}i) strategy :header_match do |headers, regex| match = headers["location"]&.match(regex) next if match.blank? "#{match[5]},#{match[4]},#{match[1]},#{match[2]},#{match[3]}" end end no_autobump! because: :requires_manual_review app "喜马拉雅.app" zap trash: [ "~/Library/Application Support/Ximalaya SetUp", "~/Library/Application Support/喜马拉雅", "~/Library/Logs/喜马拉雅", "~/Library/Preferences/com.gemd.iting.plist", "~/Library/Saved Application State/com.gemd.iting.savedState", ] end