homebrew-cask/Casks/g/godot.rb

29 lines
840 B
Ruby

cask "godot" do
version "4.1.1"
sha256 "bbfe748f094fb655c32e0655d9c187b7c76031220d55a9f67a8e360756170c40"
url "https://downloads.tuxfamily.org/godotengine/#{version}/Godot_v#{version}-stable_macos.universal.zip",
verified: "downloads.tuxfamily.org/godotengine/"
name "Godot Engine"
desc "Game development engine"
homepage "https://godotengine.org/"
livecheck do
url "https://github.com/godotengine/godot"
regex(/^v?(\d+(?:\.\d+)+)[._-]stable$/i)
end
conflicts_with cask: "homebrew/cask-versions/godot3"
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