27 lines
710 B
Ruby
27 lines
710 B
Ruby
cask "ddnet" do
|
|
version "15.8.1"
|
|
sha256 "bb80f5823307c9dccb59ff50b25646bb5516749e3337fc54d8f5767661a5f106"
|
|
|
|
url "https://ddnet.tw/downloads/DDNet-#{version}-macos.dmg"
|
|
name "DDNet"
|
|
desc "Teeworlds version of DDRace"
|
|
homepage "https://ddnet.tw/"
|
|
|
|
livecheck do
|
|
url "https://github.com/ddnet/ddnet/tags"
|
|
strategy :page_match
|
|
regex(/(\d+(?:\.\d+)+)\.zip/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
|