cask "volta-app" do
  arch arm: "-arm64"

  version "1.18.1"
  sha256 arm:   "2f48cfa27f76b12bbbcac348cc817708c7db7279a2610b6a9991a83a461e99e1",
         intel: "334052571718e70426abcf4c291846765ace90b69c01f8c19938def8c68459db"

  url "https://volta-build.s3.fr-par.scw.cloud/Volta-#{version}#{arch}.dmg",
      verified: "volta-build.s3.fr-par.scw.cloud/"
  name "Volta"
  desc "GitHub issues and notifications"
  homepage "https://volta.net/"

  disable! date: "2026-02-23", because: :no_longer_available

  auto_updates true
  depends_on :macos

  app "Volta.app"

  uninstall quit: "com.volta.net"

  zap trash: [
    "~/Library/Application Support/Caches/volta-app-updater",
    "~/Library/Application Support/volta-app",
    "~/Library/Caches/com.volta.net",
    "~/Library/Caches/com.volta.net.ShipIt",
    "~/Library/HTTPStorages/com.volta.net",
    "~/Library/Preferences/ByHost/com.volta.net.ShipIt.*.plist",
    "~/Library/Preferences/com.volta.net.plist",
    "~/Library/Saved Application State/com.volta.net.savedState",
  ]
end
