26 lines
731 B
Ruby
26 lines
731 B
Ruby
cask "ddnet" do
|
|
version "18.3"
|
|
sha256 "699151be40dc186469daf7488ca4f479c0de929a8f968784d7b435fd9f31bd1b"
|
|
|
|
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
|