cask "apifox" do arch arm: "-macOS-arm64" livecheck_arch = on_arch_conditional arm: "-arm64" version "2.8.51" sha256 arm: "9c756fc94e36f16070ba53c9b6675c1d7a9e16975788544855ec8c2733443dc8", intel: "e692b01ffc6e25344d82f951490ebefe6481791dce7009338e620523f7d436c1" url "https://file-assets.apifox.com/download/#{version}/Apifox#{arch}-#{version}.dmg" name "Apifox" desc "Platform for API documentation, debugging, and testing" homepage "https://github.com/apifox/apifox" livecheck do url "https://api.apifox.com/api/v1/configs/client-updates/#{version}/mac#{livecheck_arch}/latest-mac.yml?noCache=#{Time.now.to_i * 2}" strategy :electron_builder end auto_updates true depends_on :macos app "Apifox.app" zap trash: [ "~/.apifox-ai-agent-debugger", "~/Library/Application Support/apifox", "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/cn.apifox.app.sfl*", "~/Library/Preferences/cn.apifox.app.plist", "~/Library/Saved Application State/cn.apifox.app.savedState", ] end