diff --git a/README.md b/README.md index 4595699..9983b08 100644 --- a/README.md +++ b/README.md @@ -43,10 +43,13 @@ pick the build for your Mac's chip: | Intel | [OpenStats-0.6.2-Intel.dmg](https://getopenstats.com/download/OpenStats-0.6.2-Intel.dmg) | Not sure? Apple menu › About This Mac says "Chip Apple M…" on Apple silicon and "Processor Intel…" on Intel. -Homebrew picks the right build for you: +Homebrew picks the right build for you. Recent Homebrew refuses to load casks from an untrusted third-party +tap, so trust it once first: ```bash -brew install --cask gentpan/tap/openstats +brew tap gentpan/tap +brew trust gentpan/tap +brew install --cask openstats ``` Requires macOS 14 (Sonoma) or later. Developed and tested mainly on Apple silicon; on Intel Macs, Apple diff --git a/README.zh-CN.md b/README.zh-CN.md index a1e4092..6d9f254 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -40,10 +40,12 @@ OpenStats 是一款 macOS 菜单栏应用,实时显示 Mac 正在做什么: | Intel 芯片 | [OpenStats-0.6.2-Intel.dmg](https://getopenstats.com/download/OpenStats-0.6.2-Intel.dmg) | 不确定是哪种,看苹果菜单 › 关于本机:写着“芯片 Apple M…”是 Apple 芯片,写着“处理器 Intel…”是 Intel。 -也可以用 Homebrew 安装,会自动选对版本: +也可以用 Homebrew 安装,会自动选对版本。新版 Homebrew 不加载未经信任的第三方 tap,所以要先 `trust` 一次: ```bash -brew install --cask gentpan/tap/openstats +brew tap gentpan/tap +brew trust gentpan/tap +brew install --cask openstats ``` 需要 macOS 14(Sonoma)或更高版本。主要在 Apple 芯片上开发和测试;Intel 机型上不能用 Apple 智能解释进程, diff --git a/Scripts/publish_release.sh b/Scripts/publish_release.sh index e715134..98f9e17 100755 --- a/Scripts/publish_release.sh +++ b/Scripts/publish_release.sh @@ -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" diff --git a/Scripts/release.sh b/Scripts/release.sh index 2c04c37..b62a66f 100755 --- a/Scripts/release.sh +++ b/Scripts/release.sh @@ -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", ] diff --git a/web/index.html b/web/index.html index 9a38152..af37ec0 100644 --- a/web/index.html +++ b/web/index.html @@ -351,7 +351,7 @@

不确定是哪种?打开苹果菜单 › 关于本机,看“芯片”或“处理器”那一行。

版本 0.6.2 · macOS 14 Sonoma 及以上 · 简体中文与 English 界面 · 这个版本更新了什么

-

也可以用 Homebrew 安装:brew install --cask gentpan/tap/openstats

+

也可以用 Homebrew 安装:brew tap gentpan/tap && brew trust gentpan/tap && brew install --cask openstats

@@ -613,7 +613,7 @@
怎么安装、卸载? -

下载 DMG 后把 OpenStats 拖进“应用程序”;也可以用 Homebrew:brew install --cask gentpan/tap/openstats。卸载时先在“设置 › 辅助工具”里卸载辅助工具,再把应用移到废纸篓;用 Homebrew 安装的执行 brew uninstall --zap --cask openstats。

+

下载 DMG 后把 OpenStats 拖进“应用程序”;也可以用 Homebrew:brew tap gentpan/tap && brew trust gentpan/tap && brew install --cask openstats(新版 Homebrew 要先信任第三方 tap 才能安装)。卸载时先在“设置 › 辅助工具”里卸载辅助工具,再把应用移到废纸篓;用 Homebrew 安装的执行 brew uninstall --zap --cask openstats。

菜单栏图标的顺序怎么调?