cask "vincelwt-chatgpt" do
  arch arm: "arm64", intel: "x64"

  version "0.0.5"
  sha256 arm:   "e41a76560d78afd5000129aeb4d720c755bf916c7db32c81f608c5ee5bd3177a",
         intel: "f2c1bbe1e37836e9615e0061fd41d16c2ab16e60440aee3af4f62f8d346ec330"

  url "https://github.com/vincelwt/chatgpt-mac/releases/download/v#{version}/Chatgpt-#{version}-#{arch}.dmg"
  name "ChatGPT for Mac"
  desc "Menu bar application for ChatGPT"
  homepage "https://github.com/vincelwt/chatgpt-mac"

  deprecate! date: "2025-06-21", because: :unmaintained
  disable! date: "2026-06-21", because: :unmaintained

  depends_on macos: :big_sur

  app "Chatgpt.app"

  zap trash: [
    "~/Library/Application Scripts/chatgpt-mac",
    "~/Library/Caches/com.vincelwt.chatgptmac",
    "~/Library/Caches/com.vincelwt.chatgptmac.ShipIt",
    "~/Library/Preferences/com.vincelwt.chatgptmac.plist",
  ]
end
