diff --git a/README.md b/README.md index b2d7b83..e5cd37f 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,23 @@ +## Install + +Easily install with _[Homebrew](https://brew.sh) ([Cask](https://docs.brew.sh/Cask-Cookbook)):_ + +~~~ sh +brew tap lencx/chatgpt https://github.com/lencx/ChatGPT.git +brew install --cask chatgpt --no-quarantine +~~~ + +Also, if you keep a _[Brewfile](https://github.com/Homebrew/homebrew-bundle#usage)_, you can add something like this: + +~~~ rb +repo = "lencx/chatgpt" +tap repo, "https://github.com/#{repo}.git" +cask "popcorn-time", args: { "no-quarantine": true } +~~~ + ## Features - multi-platform: `macOS` `Linux` `Windows` diff --git a/casks/chatgpt.rb b/casks/chatgpt.rb new file mode 100644 index 0000000..43b3fdb --- /dev/null +++ b/casks/chatgpt.rb @@ -0,0 +1,22 @@ +cask "chatgpt" do + version "0.1.7" + sha256 "1320b30a67e2506f9b45ffd2a48243d6141171c231dd698994ae5156a637eb3f" + + url "https://github.com/lencx/ChatGPT/releases/download/v#{version}/ChatGPT_#{version}_x64.dmg" + 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