Repository navigation
Releases: l351i3/BatteryBar
Releases · l351i3/BatteryBar
Release list
Battery Bar v2.1.2
What's New (English)
- AirPods charging state now works reliably — anonymous
pmset -g accpsentries (the only reliable charging source on macOS, emitted without a device name when AirPods are in the case) were previously discarded; they are now matched to inventory components by exact battery level - 100% no longer shows a misleading "charged" label — pmset keeps reporting
chargingafter full; at 100% the app now shows no charge label at all - Menu bar icon: "charged" state no longer triggers the green charging animation
- Installer scripts fixed — two long-standing bugs silently prevented the autostart login item from being written (broken osascript quoting) and could break installation when run with zsh (bash-only
BASH_SOURCEvariable). All bundled install/uninstall scripts fixed; login item now actually works
本次修复
AirPods 充电状态终于可靠显示
- 根因:pmset 输出的匿名条目(AirPods 在充电盒中时无设备名)被直接丢弃,丢失了 macOS 上唯一可靠的充电数据源
- 修复:通过电量百分比将匿名条目与蓝牙清单精确匹配,充电状态绑定到左耳/右耳/充电盒组件
100% 不再误显示「已充满」
- pmset 在设备充满后仍报 charging(0:00 remaining),实际充电已停止
- 现在 100% 的设备只显示电量,不显示任何充电/充满标签
菜单栏图标
- 「已充满」状态不再触发绿色充电动画图标
安装/卸载脚本修复
- osascript 引号嵌套错误导致登录项(开机自启)从未真正写入;zsh 脚本误用 bash 专属
BASH_SOURCE变量。随包分发的全部脚本已修复
Download / 下载
| File | Contents | For |
|---|---|---|
BatteryBar-Full.dmg |
Main app + desktop widget | Recommended, macOS 14+ |
BatteryBar-AppOnly.dmg |
Main app only | Without desktop widget |
⚠️ Apple Silicon (M1/M2/M3/M4) only — arm64 packages, not compatible with Intel Macs.
Ad-hoc signed; right-click → Open on first launch to bypass Gatekeeper.
应用为 ad-hoc 签名,首次打开需右键 → 打开绕过 Gatekeeper。
SHA-256
BatteryBar-Full.dmg 93b8cb216060b068f262eb82475e35ea17d8d5487bb5bc988bdd18319e873e26
BatteryBar-AppOnly.dmg c13ae877d5d54702c9691705f0d14648d05a1ec98113fc8c71eb3094081968bc
Full changelog: CHANGELOG.md