cask "roblox" do arch arm: "arm64/" version "0.679.0.6790761,db859ae17f144eea" sha256 arm: "42faff14f5fe39545ecb9e323ea84ad60d9a917820f4a6705e063a20440273eb", intel: "ca9c7395792bdc268d169579b6f6c0cddfa0d9d281a3274d14c49de7e065cc9a" url "https://setup.rbxcdn.com/mac/#{arch}version-#{version.csv.second}-RobloxPlayer.zip", verified: "setup.rbxcdn.com/" name "Roblox" desc "Online multiplayer game platform" homepage "https://www.roblox.com/" livecheck do url "https://clientsettingscdn.roblox.com/v1/client-version/MacPlayer" 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" # The default installer installs the application as `Roblox.app` - so do the same for consistency app "RobloxPlayer.app", target: "Roblox.app" uninstall quit: "com.roblox.RobloxPlayer" zap trash: [ "~/Library/Preferences/com.Roblox.Roblox.plist", "~/Library/Preferences/com.roblox.RobloxPlayer.plist", "~/Library/Preferences/com.roblox.RobloxPlayerChannel.plist", ] end