cask "apifox" do arch arm: "-macOS-arm64" livecheck_arch = on_arch_conditional arm: "-arm64" version "2.7.19" sha256 arm: "b13c64293a6105c7542b020f4d65ecdd008741fc5f469897cd1c976053b14158", intel: "f3af4aeba8ee3d56dc0af79ba55fe6932fbc16d595cf92d06973e24d11ec4b38" url "https://file-assets.apifox.com/download/#{version}/Apifox#{arch}-#{version}.dmg" name "Apifox" desc "Platform for API documentation, debugging, and testing" homepage "https://www.apifox.com/" livecheck do url "https://api.apifox.com/api/v1/configs/client-updates/#{version}/mac#{livecheck_arch}/latest-mac.yml?noCache=#{Time.new.to_i * 2}" strategy :electron_builder end auto_updates true depends_on macos: ">= :el_capitan" app "Apifox.app" zap trash: [ "~/Library/Application Support/apifox", "~/Library/Preferences/cn.apifox.app.plist", "~/Library/Saved Application State/cn.apifox.app.savedState", ] end