Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

toontown-rewritten: update livecheck, use versioned url #181194

Merged
merged 1 commit into from
Jul 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 16 additions & 5 deletions Casks/t/toontown-rewritten.rb
Original file line number Diff line number Diff line change
@@ -1,19 +1,30 @@
cask "toontown-rewritten" do
version "1.5.0"
sha256 :no_check
version "1.5.1"
sha256 "c88cd534c903ffc0a5e8696de4f18455e1193b18afa607db54689283c951b4df"

url "https://cdn.toontownrewritten.com/launcher/mac/Toontown%20Rewritten.dmg"
url "https://download.toontownrewritten.com/launcher/mac/updates/#{version}/ttr_launcher_#{version}.zip"
name "Toontown Rewritten"
name "Toontown Launcher"
desc "Fan-made revival of Disney's Toontown Online"
homepage "https://www.toontownrewritten.com/"

livecheck do
url :url
strategy :extract_plist
url "https://download.toontownrewritten.com/launcher/mac/Toontown%20Rewritten.xml"
strategy :sparkle
end

auto_updates true
depends_on macos: ">= :mojave"

# Renamed for consistency: app name is different in the Finder and in a shell.
# Original discussion: https://github.com/Homebrew/homebrew-cask/pull/8037
app "Toontown Launcher.app", target: "Toontown Rewritten.app"

zap trash: [
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.toontownrewritten.toontown-launcher.sfl*",
"~/Library/Caches/com.toontownrewritten.Toontown-Launcher",
"~/Library/HTTPStorages/com.toontownrewritten.Toontown-Launcher",
"~/Library/Preferences/com.toontownrewritten.Toontown-Launcher.plist",
"~/Library/Saved Application State/com.toontownrewritten.Toontown-Launcher.savedState",
]
end
Loading