cask "apidog" do arch arm: "-macOS-arm64" livecheck_folder = on_arch_conditional arm: "-arm64" version "2.8.7" sha256 arm: "c71212929adca2d43592b27c059c8a3f6d97c234a734edd065fd475fffb43dfb", intel: "81a498bee96c218c491b5b76b7e83454a30ad11f983cd285dc7f0b5adf8f948b" url "https://file-assets.apidog.com/download/#{version}/legacy-Apidog#{arch}-#{version}.dmg" name "Apidog" desc "API development platform" homepage "https://apidog.com/" livecheck do url "https://api.apidog.com/api/v1/configs/client-updates/latest/mac#{livecheck_folder}/latest-mac.yml" strategy :electron_builder end auto_updates true app "Apidog.app" zap trash: [ "~/Library/Application Support/apidog", "~/Library/Preferences/com.apidog.app.plist", "~/Library/Saved Application State/com.apidog.app.savedState", ] end