Homebrew:cask 补卸载与清理规则和 livecheck,安装说明加上信任 tap 的步骤

This commit is contained in:
gentpan committed 2026-09-21 04:36:04 +05:00
1 parent d43a71200e
commit 2efebb5008
5 files changed
+28 -8

No files matched your search

+1 -1
View File
@@ -75,4 +75,4 @@ else
git -C "$WORK/tap" push -q
echo "✅ 已提交 Casks/openstats.rb 到 $TAP"
fi
echo "安装:brew install --cask gentpan/tap/openstats"
echo "安装:brew tap gentpan/tap && brew trust gentpan/tap && brew install --cask openstats"
+16 -1
View File
@@ -134,7 +134,15 @@ cask "openstats" do
url "${DOWNLOAD_BASE}/OpenStats-#{version}-#{arch}.dmg"
name "OpenStats"
desc "Menu bar system monitor with fan control, keep-awake and cleanup"
homepage "https://getopenstats.com"
homepage "https://getopenstats.com/"
# 新版本以官网的在线升级清单为准
livecheck do
url "${DOWNLOAD_BASE}/appcast.json"
strategy :json do |json|
json["version"]
end
end
# 应用内置在线升级,brew upgrade 默认不再重复升级
auto_updates true
@@ -142,7 +150,14 @@ cask "openstats" do
app "OpenStats.app"
# 卸载前退出应用,并停掉可选的特权辅助工具(没装过就跳过)
uninstall launchctl: "com.openstats.helper",
quit: "com.openstats.app"
zap trash: [
"~/Library/Application Support/OpenStats",
"~/Library/Caches/com.openstats.app",
"~/Library/Containers/com.openstats.app.widget",
"~/Library/Logs/OpenStats",
"~/Library/Preferences/com.openstats.app.plist",
]