cask "archiver" do
  version "3.0.9"
  sha256 "6e5a623b5ab84efafa9d7dee5f76527a458518552d7caa1dcaae48f23048783e"

  # storage.googleapis.com/incrediblebee/ was verified as official when first introduced to the cask
  url "https://storage.googleapis.com/incrediblebee/apps/Archiver-#{version.major}/Archiver-#{version}.zip"
  appcast "https://api.incrediblebee.com/appcasts/archiver-#{version.major}.xml"
  name "Archiver"
  homepage "https://archiverapp.com/"

  depends_on macos: ">= :sierra"

  app "Archiver.app"

  zap trash: [
    "~/Library/Application Support/com.incrediblebee.Archiver*",
    "~/Library/Preferences/com.incrediblebee.Archiver*.plist",
  ]
end
