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

Revert "northern-softworks-cache-cleaner: add legacy versions" #186123

Merged
merged 1 commit into from
Sep 20, 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
56 changes: 7 additions & 49 deletions Casks/n/northern-softworks-cache-cleaner.rb
Original file line number Diff line number Diff line change
@@ -1,62 +1,20 @@
cask "northern-softworks-cache-cleaner" do
version "20.0"
sha256 :no_check

on_mojave :or_older do
version "12.0.6"

url "https://www.northernsoftworks.com/legacy/mcc.dmg"
end
on_catalina do
version "15.0.6"

url "https://www.northernsoftworks.com/legacy/ccc-final.dmg"
end
on_big_sur do
version "16.1.7"

url "https://www.northernsoftworks.com/legacy/bscc-final.dmg"
end
on_monterey do
version "17.0.5"

url "https://www.northernsoftworks.com/legacy/mcc2022.dmg"
end
on_ventura do
version "18.0.7"

url "https://www.northernsoftworks.com/legacy/vcc180007.dmg"
end
on_sonoma do
version "19.0.6"

url "https://www.northernsoftworks.com/legacy/nscc190006.dmg"
end
on_sequoia :or_newer do
version "20.0"

url "https://www.northernsoftworks.com/downloads/nscc.dmg"
end
# Homepage, livecheck regex, and app change with major macOS releases

url "https://www.northernsoftworks.com/downloads/nscc.dmg"
name "Northern Softworks Cache Cleaner"
desc "General purpose system maintenance tool"
homepage "https://www.northernsoftworks.com/cachecleanerfeatures.html"
homepage "https://www.northernsoftworks.com/sequoiacachecleaner.html"

livecheck do
url "https://www.northernsoftworks.com/support.html"
regex(/#{MacOS.version.pretty_name}\s*Cache\s*Cleaner\s*v?(\d+(?:\.\d+)+)/i)
url :homepage
regex(/Download\s*Sequoia\s*Cache\s*Cleaner\s*v?(\d+(?:\.\d+)+)/i)
end

depends_on macos: [
:mojave,
:catalina,
:big_sur,
:monterey,
:ventura,
:sonoma,
:sequoia,
]

app "#{MacOS.version.pretty_name} Cache Cleaner.app"
app "Sequoia Cache Cleaner.app"

zap trash: [
"~/Library/Application Support/com.northernsw.nswCacheCleaner",
Expand Down
Loading