homebrew-cask/Casks/p/prettyclean.rb

30 lines
943 B
Ruby
Raw Normal View History

2024-01-05 10:43:50 +08:00
cask "prettyclean" do
arch arm: "aarch64", intel: "x64"
arch_folder = on_arch_conditional arm: "aarch64", intel: "x86_64"
2024-01-05 10:43:50 +08:00
version "0.1.38"
2024-01-05 10:50:05 +08:00
sha256 arm: "1832d6ffdbe0fcbffe35c3b2f6ac4031e7e8ce93a7c564124914888ebfb43885",
intel: "bc7512ff7544d8522ebd1ac0c13e94da8661dd6a5772bda33d68a9145be73436"
2024-01-05 10:43:50 +08:00
url "https://downloads.jmotor.org/prettyclean/v#{version}/darwin-#{arch_folder}/PrettyClean_#{version}_#{arch}.dmg",
2024-01-05 10:43:50 +08:00
verified: "downloads.jmotor.org/"
name "PrettyClean"
2024-01-05 10:43:50 +08:00
desc "Easy to use Disk Cleanup Tools"
homepage "https://www.prettyclean.cc/"
livecheck do
url "https://www.prettyclean.cc/en/download"
regex(/href=.*?PrettyClean[._-]v?(\d+(?:\.\d+)+)[._-]#{arch}\.dmg/i)
2024-01-05 10:43:50 +08:00
end
2024-01-05 11:05:27 +08:00
depends_on macos: ">= :high_sierra"
2024-01-05 10:43:50 +08:00
app "PrettyClean.app"
zap trash: [
"~/Library/Caches/cc.prettyclean.PrettyClean",
"~/Library/Logs/PrettyClean",
"~/Library/WebKit/cc.prettyclean.PrettyClean",
]
end