cask "adrive" do arch arm: "-arm64" version "6.8.7" sha256 arm: "a5fac122ff59da06a75b3cddc99f3c6709b1984cdb4ed669bc4f3bcd6b0ced2e", intel: "6143981df9189d58ea213d5d3eb088559ed10510ec4e9b0c1f02960947f59fef" url "https://cdn.aliyundrive.net/downloads/apps/desktop/aDrive-#{version}#{arch}.dmg", verified: "cdn.aliyundrive.net/", user_agent: :fake name "Aliyundrive" name "阿里云盘" desc "Intelligent cloud storage platform" homepage "https://www.aliyundrive.com/" livecheck do url "https://www.aliyundrive.com/download" regex(/aDrive[._-]v?(\d+(?:\.\d+)+)#{arch}\.dmg/i) end auto_updates true depends_on macos: ">= :high_sierra" app "aDrive.app" zap trash: [ "~/Library/Application Support/aDrive", "~/Library/Preferences/com.alicloud.smartdrive.plist", "~/Library/Saved Application State/com.alicloud.smartdrive.savedState", ] end