cask "robloxstudio" do arch arm: "arm64/" version "0.651.1.6510840,cee9437088cb49a3" sha256 arm: "5872a4c5ee09ce14851eb46bffb5191f63a8d26b565995650bc1c59140d6e3ce", intel: "1bda4e77e6d7bdc85b5aaba700849c0950ac6b0d7d2d853ad3b93ce33e46e80e" url "https://setup.rbxcdn.com/mac/#{arch}version-#{version.csv.second}-RobloxStudioApp.zip", verified: "setup.rbxcdn.com/" name "Roblox Studio" desc "Roblox IDE to build your experiences" homepage "https://create.roblox.com/" livecheck do url "https://clientsettingscdn.roblox.com/v1/client-version/MacStudio" strategy :json do |json| version = json["version"] client_version = json["clientVersionUpload"]&.split("-")&.second next if version.blank? || client_version.blank? "#{version},#{client_version}" end end auto_updates true depends_on macos: ">= :high_sierra" app "RobloxStudio.app" uninstall quit: "com.roblox.RobloxStudio", delete: "/Applications/RobloxStudio.app" zap trash: [ "~/Library/Preferences/com.roblox.RobloxStudio.plist", "~/Library/Preferences/com.roblox.RobloxStudioChannel.plist", ] end