cask "defold" do arch arm: "arm64", intel: "x86_64" version "1.13.2" sha256 :no_check # required as upstream package is updated in-place url "https://github.com/defold/defold/releases/download/#{version}/Defold-#{arch}-macos.dmg" name "Defold" desc "Game engine for development of desktop, mobile and web games" homepage "https://defold.com/" livecheck do url "https://d.defold.com/stable/info.json" strategy :json do |json| json["version"] end end auto_updates true conflicts_with cask: [ "defold@alpha", "defold@beta", ] depends_on :macos app "Defold.app" uninstall quit: "com.defold.editor" zap trash: [ "~/Library/Application Support/Defold", "~/Library/Caches/com.defold.editor", "~/Library/Preferences/com.defold.editor.plist", "~/Library/Saved Application State/com.defold.editor.savedState", ] end