Homebrew:cask 补卸载与清理规则和 livecheck,安装说明加上信任 tap 的步骤
This commit is contained in:
1 parent
d43a71200e
commit
2efebb5008
5 files changed
+28
-8
No files matched your search
@@ -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
|
||||
|
||||
+4
-2
@@ -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 智能解释进程,
|
||||
|
||||
@@ -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
@@ -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",
|
||||
]
|
||||
|
||||
+2
-2
@@ -351,7 +351,7 @@
|
||||
</ul>
|
||||
<p class="download__hint">不确定是哪种?打开苹果菜单 › 关于本机,看“芯片”或“处理器”那一行。</p>
|
||||
<p class="hero__meta">版本 0.6.2 · macOS 14 Sonoma 及以上 · 简体中文与 English 界面 · <a href="#changelog">这个版本更新了什么</a></p>
|
||||
<p class="download__brew">也可以用 Homebrew 安装:<code>brew install --cask gentpan/tap/openstats</code></p>
|
||||
<p class="download__brew">也可以用 Homebrew 安装:<code>brew tap gentpan/tap && brew trust gentpan/tap && brew install --cask openstats</code></p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -613,7 +613,7 @@
|
||||
</details>
|
||||
<details class="faq" id="install">
|
||||
<summary>怎么安装、卸载?</summary>
|
||||
<p>下载 DMG 后把 OpenStats 拖进“应用程序”;也可以用 Homebrew:<code>brew install --cask gentpan/tap/openstats</code>。卸载时先在“设置 › 辅助工具”里卸载辅助工具,再把应用移到废纸篓;用 Homebrew 安装的执行 <code>brew uninstall --zap --cask openstats</code>。</p>
|
||||
<p>下载 DMG 后把 OpenStats 拖进“应用程序”;也可以用 Homebrew:<code>brew tap gentpan/tap && brew trust gentpan/tap && brew install --cask openstats</code>(新版 Homebrew 要先信任第三方 tap 才能安装)。卸载时先在“设置 › 辅助工具”里卸载辅助工具,再把应用移到废纸篓;用 Homebrew 安装的执行 <code>brew uninstall --zap --cask openstats</code>。</p>
|
||||
</details>
|
||||
<details class="faq">
|
||||
<summary>菜单栏图标的顺序怎么调?</summary>
|
||||
|
||||
Reference in new issue
Block a user