diff --git a/Casks/s/simplex.rb b/Casks/s/simplex.rb new file mode 100644 index 0000000000..3483f8903b --- /dev/null +++ b/Casks/s/simplex.rb @@ -0,0 +1,27 @@ +cask "simplex" do + arch arm: "aarch64", intel: "x86_64" + + version "5.3.1" + sha256 arm: "cfdaf17794b8b794b919e22edb2b6e0f6f9d1ead153592d937a98c92f476c617", + intel: "24d4acac948fa333de3385e59e8930e76df55fae55e31e6f1ab4037a4e68bac6" + + url "https://github.com/simplex-chat/simplex-chat/releases/download/v#{version}/simplex-desktop-macos-#{arch}.dmg", + verified: "github.com/simplex-chat/simplex-chat/" + name "SimpleX Chat" + desc "Messenger for SimpleX protocol" + homepage "https://simplex.chat/" + + livecheck do + # To not grab f-droid and pre-releases + strategy :github_latest do |json, regex| + match = json["tag_name"]&.match(regex) + next if match.blank? + + match[1] + end + end + + app "SimpleX.app" + + zap trash: "~/Library/Saved Application State/chat.simplex.app.savedState" +end