cask "godot" do version "4.4.1" sha256 "6c670596d21afb7917c739d0b85b10b4ac6a44051ffa2a672f90bc7da5062864" url "https://github.com/godotengine/godot/releases/download/#{version}-stable/Godot_v#{version}-stable_macos.universal.zip", verified: "github.com/godotengine/godot/" name "Godot Engine" desc "Game development engine" homepage "https://godotengine.org/" livecheck do url :url regex(/^v?(\d+(?:\.\d+)+)[._-]stable$/i) strategy :github_latest end conflicts_with cask: "godot@3" depends_on macos: ">= :high_sierra" app "Godot.app" binary "#{appdir}/Godot.app/Contents/MacOS/Godot", target: "godot" uninstall quit: "org.godotengine.godot" zap trash: [ "~/Library/Application Support/Godot", "~/Library/Caches/Godot", "~/Library/Saved Application State/org.godotengine.godot.savedState", ] end