Files
homebrew-cask/Casks/g/godot.rb
2023-11-30 09:51:47 -05:00

31 lines
876 B
Ruby

cask "godot" do
version "4.2"
sha256 "8439435ac05786d8fbfccfa0c2a38e575bb48448c9385b6fbfed183dce472c77"
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: "homebrew/cask-versions/godot3"
depends_on macos: ">= :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