GOG Cleanup — GOG 清理
v1.0.0找到已安装但30+天未玩的GOG游戏,发送包含这些游戏的电子邮件列表,并添加Apple Reminders提醒考虑卸载。为您的...进行一键清理扫描。
运行时依赖
安装命令
点击复制技能文档
GOG Cleanup 自动清理过期游戏:扫描已安装的GOG游戏,若30+天未玩,会发送摘要邮件,并在Apple Reminders中创建提醒,以便决定是否卸载。
它的作用: 从config/gog_library.json读取GOG游戏库 筛选出30+天未玩(或从未玩过)的已安装游戏 通过himalaya发送格式化的摘要邮件 通过remindctl将每个过期游戏添加到Apple Reminders的Gaming列表中
前置条件: 工具目的 安装jq JSON解析 brew install jq himalaya 发送邮件 brew install himalaya remindctl Apple Reminders brew install steipete/tap/remindctl himalaya必须配置个人账户(见config/himalaya.toml) Apple Reminders必须有Gaming列表(如果缺失则自动创建)
使用方法: 运行完整扫描(邮件+提醒) bash scripts/gog-cleanup.sh 仅发送邮件(跳过提醒) SKIP_REMINDERS=1 bash scripts/gog-cleanup.sh 仅创建提醒(跳过邮件) SKIP_EMAIL=1 bash scripts/gog-cleanup.sh 自定义过期阈值(默认30天) STALE_DAYS=60 bash scripts/gog-cleanup.sh 自定义收件人(默认为himalaya个人账户邮件) EMAIL_TO="other@example.com" bash scripts/gog-cleanup.sh
配置: 脚本从workspace config/中读取: 文件目的 config/gog_library.json GOG游戏库,包含安装状态和last_played时间戳 config/himalaya.toml Himalaya邮件账户配置(使用个人账户) config/reminders_lists.json Reminders列表结构(Gaming列表)
输出: 邮件:发送到个人收件箱的HTML格式摘要 提醒:在Gaming列表中为每个过期游戏创建一个提醒,前缀为" Consider uninstalling:" 控制台:显示找到的游戏和采取的操作的摘要
定时运行: 每周通过cron运行: # 添加到crontab中,每周一9点运行 0 9 1 /path/to/scripts/gog-cleanup.sh >> /tmp/gog-cleanup.log 2>&1 或使用OpenClaw的cron工具进行agent管理的定时运行。
注意: last_played:null(从未玩过)的游戏始终被包含 未安装的游戏始终被跳过,无论last_played 脚本是幂等的——重新运行不会重复创建提醒(现有的同名提醒被跳过)