2022-12-10 17:29:20 +00:00
|
|
|
cask "chatgpt" do
|
2023-12-13 09:25:43 +00:00
|
|
|
version "1.1.0"
|
2023-02-17 03:30:49 +00:00
|
|
|
arch = Hardware::CPU.arch.to_s
|
|
|
|
|
sha256s = {
|
2023-12-13 09:25:43 +00:00
|
|
|
"x86_64" => "6747e61a507402fa4b36db443c37a79299a4e1d4ba9904298a0b00c3e6a243b6",
|
|
|
|
|
"aarch64" => "f870ba135ad990715474cbb038b5b38acb8d08640803e2c79c878e210f4800f6"
|
2023-02-17 03:30:49 +00:00
|
|
|
}
|
2023-02-17 09:01:04 +00:00
|
|
|
if arch == "arm64" then arch = "aarch64" end
|
2023-02-17 03:30:49 +00:00
|
|
|
url "https://github.com/lencx/ChatGPT/releases/download/v#{version}/ChatGPT_#{version}_macos_#{arch}.dmg"
|
|
|
|
|
sha256 sha256s[arch]
|
2022-12-10 17:29:20 +00: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
|