cask "arq" do version "7.35.1" sha256 "c64ad61f6af70dac6c041772bb45a3feace325a6bd0d3642cc4681fe76f65b26" url "https://www.arqbackup.com/download/arqbackup/Arq#{version}.pkg" name "Arq" desc "Multi-cloud backup application" homepage "https://www.arqbackup.com/" livecheck do url "https://www.arqbackup.com/download/arqbackup/arq#{version.major}_release_notes.html" regex(/Version\s+v?(\d+(?:\.\d+)+)/i) end auto_updates true pkg "Arq#{version}.pkg" binary "#{appdir}/Arq.app/Contents/Resources/arqc" uninstall launchctl: [ "com.haystacksoftware.arqagent", "com.haystacksoftware.ArqMonitor", ], quit: "com.haystacksoftware.Arq", pkgutil: "com.haystacksoftware.Arq", delete: "/Applications/Arq.app" zap trash: [ "/Library/Application Support/ArqAgent", "/Library/Application Support/ArqAgentAPFS", "~/Library/Application Support/Arq *", "~/Library/Arq *", "~/Library/Preferences/com.haystacksoftware.Arq.plist", "~/Library/Preferences/com.haystacksoftware.ArqMonitor.plist", ] end