From f469635459288f3ec096e02cd1dd521c6d0f0a19 Mon Sep 17 00:00:00 2001 From: Vangie Du Date: Fri, 17 Feb 2023 11:30:49 +0800 Subject: [PATCH] Update chatgpt.rb 1. Support version 0.11.0 2. Compatible with aarch64 --- casks/chatgpt.rb | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/casks/chatgpt.rb b/casks/chatgpt.rb index 030892d..74831fc 100644 --- a/casks/chatgpt.rb +++ b/casks/chatgpt.rb @@ -1,8 +1,14 @@ cask "chatgpt" do - version "0.10.3" - sha256 "f44838a80844999191a303684fd7ae1811dd2fae6709aebe8bff23c70f9b8a10" + version "0.11.0" + arch = Hardware::CPU.arch.to_s + sha256s = { + "x86_64" => "5f8013bee34daa53be8612b751955f745e7af9ef85b3541eba304b45176b6d8a", + "aarch64" => "a5d914277d16827c5e3c641abd80c7978f78b8ccf36bf08661e1bc06efc6224e" + } + + url "https://github.com/lencx/ChatGPT/releases/download/v#{version}/ChatGPT_#{version}_macos_#{arch}.dmg" + sha256 sha256s[arch] - url "https://github.com/lencx/ChatGPT/releases/download/v#{version}/ChatGPT_#{version}_macos_x86_64.dmg" name "ChatGPT" desc "Desktop wrapper for OpenAI ChatGPT" homepage "https://github.com/lencx/ChatGPT#readme"