1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-12 23:15:15 +00:00

update mole

This commit is contained in:
Tw93
2025-09-25 20:26:59 +08:00
parent c35a210344
commit 65a9b0e354
6 changed files with 85 additions and 53 deletions

View File

@@ -1,30 +0,0 @@
class CleanMac < Formula
desc "Clean Mac - Deep Clean Your Mac with One Click"
homepage "https://github.com/tw93/clean-mac"
url "https://github.com/tw93/clean-mac/archive/refs/tags/v1.0.0.tar.gz"
sha256 "8274af48615205ab3ce4b75c9b2e898a53b4d49972cd7757fe8b6fe27603a5ab"
license "MIT"
head "https://github.com/tw93/clean-mac.git", branch: "main"
def install
bin.install "clean.sh" => "clean"
end
test do
# Test that the script is executable and shows help
assert_match "Clean Mac", shell_output("#{bin}/clean --help", 0)
end
def caveats
<<~EOS
Clean Mac has been installed!
Usage:
clean - User-level cleanup (no password required)
clean --system - Deep system cleanup (password required)
clean --help - Show help message
For Apple Silicon Macs, the tool includes M-series specific optimizations.
EOS
end
end

14
Formula/mole.rb Normal file
View File

@@ -0,0 +1,14 @@
class Mole < Formula
desc "Mole - Clean your Mac"
homepage "https://github.com/tw93/mole"
license "MIT"
head "https://github.com/tw93/mole.git", branch: "main"
def install
bin.install "mole"
end
test do
assert_match "Mole", shell_output("#{bin}/mole --help", 0)
end
end