2022-12-10 12:29:20 -05:00
|
|
|
cask "chatgpt" do
|
2023-05-25 11:24:48 -04:00
|
|
|
version "1.0.0"
|
2023-02-16 22:30:49 -05:00
|
|
|
arch = Hardware::CPU.arch.to_s
|
|
|
|
sha256s = {
|
2023-05-25 11:24:48 -04:00
|
|
|
"x86_64" => "474c6024ac1100512c242449da8d93b521334d0d03a9457c42446293a64eaff4",
|
|
|
|
"aarch64" => "998d15813194957de140a530605252fdf3f68fafdba1353706fa00d070c7c23d"
|
2023-02-16 22:30:49 -05:00
|
|
|
}
|
2023-02-17 04:01:04 -05:00
|
|
|
if arch == "arm64" then arch = "aarch64" end
|
2023-02-16 22:30:49 -05:00
|
|
|
url "https://github.com/lencx/ChatGPT/releases/download/v#{version}/ChatGPT_#{version}_macos_#{arch}.dmg"
|
|
|
|
sha256 sha256s[arch]
|
2022-12-10 12:29:20 -05:00
|
|
|
|
|
|
|
name "ChatGPT"
|
|
|
|
desc "Desktop wrapper for OpenAI ChatGPT"
|
|
|
|
homepage "https://github.com/lencx/ChatGPT#readme"
|
|
|
|
|
|
|
|
app "ChatGPT.app"
|
|
|
|
|
|
|
|
uninstall quit: "com.lencx.chatgpt"
|
|
|
|
|
|
|
|
zap trash: [
|
|
|
|
"~/.chatgpt",
|
|
|
|
"~/Library/Caches/com.lencx.chatgpt",
|
|
|
|
"~/Library/HTTPStorages/com.lencx.chatgpt.binarycookies",
|
|
|
|
"~/Library/Preferences/com.lencx.chatgpt.plist",
|
|
|
|
"~/Library/Saved Application State/com.lencx.chatgpt.savedState",
|
|
|
|
"~/Library/WebKit/com.lencx.chatgpt",
|
|
|
|
]
|
|
|
|
end
|