cask "ddnet" do version "18.7" sha256 "5ab1342c261c131dc4752db9b07d179de6a7305a8953ebd9872e0d3b02269511" url "https://ddnet.org/downloads/DDNet-#{version}-macos.dmg" name "DDNet" desc "Cooperative online platform game based on Teeworlds" homepage "https://ddnet.org/" livecheck do url "https://ddnet.org/downloads/" regex(/href=.*?DDNet[._-]v?(\d+(?:\.\d+)+)[^"' >]*?\.dmg/i) end auto_updates true app "DDNet.app" app "DDNet-Server.app" zap trash: [ "~/Library/Preferences/DDNet-Server-Launcher.plist", "~/Library/Saved Application State/org.DDNetClient.app.savedState", # "~/Library/Application Support/Teeworlds/" is left out on purpose because teeworlds uses it as well. ] end