cask "raze" do version "1.10.2" sha256 "c1892c20add48bbaabdae2af8bfb034f4e45cad118b791c65053fd738e9e6563" url "https://github.com/coelckers/Raze/releases/download/#{version}/raze-macos-#{version}.zip" name "Raze" desc "Build engine port backed by GZDoom tech" homepage "https://github.com/coelckers/Raze" # Not every GitHub release provides a file for macOS, so we check multiple # recent releases instead of only the "latest" release. livecheck do url :url regex(/^raze[._-]macos[._-]v?(\d+(?:\.\d+)+)\.zip$/i) strategy :github_releases do |json, regex| json.map do |release| next if release["draft"] || release["prerelease"] release["assets"]&.map do |asset| match = asset["name"]&.match(regex) next if match.blank? match[1] end end.flatten end end app "Raze.app" zap trash: [ "~/Documents/Raze", "~/Library/Application Support/Raze", "~/Library/Preferences/org.drdteam.raze.plist", "~/Library/Preferences/org.zdoom.raze.plist", "~/Library/Preferences/raze.ini", "~/Library/Saved Application State/org.drdteam.raze.savedState", "~/Library/Saved Application State/org.zdoom.raze.savedState", ] end