homebrew-cask/Casks/c/chatgpt.rb

33 lines
1.0 KiB
Ruby

cask "chatgpt" do
version "1.2024.157,1718053765"
sha256 "e681e1806eede6389ce7cd2352540968ff6b11d376f36b95a9b5cc99148a6d61"
url "https://persistent.oaistatic.com/sidekick/public/ChatGPT_Desktop_public_#{version.csv.first}_#{version.csv.second}.dmg",
verified: "persistent.oaistatic.com/sidekick/public/"
name "ChatGPT"
desc "OpenAI's official ChatGPT desktop app"
homepage "https://chatgpt.com/"
livecheck do
url "https://persistent.oaistatic.com/sidekick/public/sparkle_public_appcast.xml"
strategy :sparkle
end
auto_updates true
depends_on macos: ">= :sonoma"
depends_on arch: :arm64
app "ChatGPT.app"
uninstall quit: "com.openai.chat"
zap trash: [
"~/Library/Application Support/com.openai.chat",
"~/Library/Caches/com.openai.chat",
"~/Library/HTTPStorages/com.openai.chat",
"~/Library/HTTPStorages/com.openai.chat.binarycookies",
"~/Library/Preferences/com.openai.chat.plist",
"~/Library/Saved Application State/com.openai.chat.savedState",
]
end