pkg.soopen package index

cask

使用 Homebrew Cask 安装 battery

查看 battery 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew Cask已验证 · 100%
brew install --cask battery

local Homebrew cask metadata

概览

软件包摘要

App for managing battery charging. (Also installs a CLI on first use.)

命令和别名

本地软件包数据库中没有找到可执行别名。

历史

项目历史与用法

Battery is a free and open-source GUI and command-line utility for controlling charging on Apple Silicon MacBooks.

项目历史

The author created Battery as a holiday side project after finding AlDente's license too restrictive for the desired power-user workflow. It began as a command-line replacement; a colleague's request prompted the addition of an Electron GUI.

采用历史

The project is distributed as both a macOS GUI and a command-line utility and supports Homebrew installation. Its public GitHub repository has attracted thousands of stars and hundreds of forks, indicating substantial interest among Apple Silicon power users.

使用方式

The GUI maintains an 80% charge target by default and installs the battery CLI. CLI users can maintain a fixed percentage or range, enable or disable charging and adapter input, charge or discharge to a target, inspect status, calibrate the battery, and update or uninstall the utility.

为什么软件包爱好者会关心

Battery is a package-manager-friendly alternative to proprietary charge-limit applications: it is free, open source, scriptable, and installable through Homebrew. Its GUI installs the CLI automatically, allowing interactive menu-bar use and shell automation to share the same underlying controls.

时间线

  • Initial development: Created as a command-line alternative to AlDente
  • Subsequent development: Added an Electron menu-bar GUI at a colleague's suggestion
  • Current distribution: Available through Homebrew and direct application downloads

Related projects

  • The README names AlDente as the product that inspired the project and as an alternative for Intel Macs. The CLI installs an smc utility built from the smcFanControl project.

来源

  • Official repository and README: https://github.com/actuallymentor/battery

安全态势

尚未找到受保护工具覆盖

没有找到 battery 的匹配本地密钥处理 manifest。软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • 未记录 Homebrew bottle 元数据。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
没有可执行文件数据。

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-11-04
管理器版本1.4.0
管理器更新时间
本地数据OK
上游not checked
检测到的最新版本未检测到

https://github.com/actuallymentor/battery

安装元数据

软件包元数据

软件包键cask:battery
版本1.4.0
软件包管理器Homebrew Cask
软件包管理器页面https://formulae.brew.sh/cask/battery
主页https://github.com/actuallymentor/battery/
仓库https://github.com/actuallymentor/battery
上游文档https://github.com/actuallymentor/battery/
源码归档https://github.com/actuallymentor/battery/releases/download/v1.4.0/battery-1.4.0-mac-arm64.zip
SHA-2564510a3c3fc772f57a1a7fa595604002458120b55b83364edb98b762d4e19ab14
Bottle未记录
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew cask API
Taphomebrew/cask
Full Tokenbattery
Names
  • Battery
Depends On
Artifacts
Auto Updatesyes
Deprecatedno
Disabledno

来源线索

由仓库数据生成

此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • cross-ecosystem install command graph
  • curated package history
  • package relationship graph
  • package version freshness
  • package-page enrichment
  • pkgdb category and tag curation