Files
钟明原 2b828f6000 refactor: 将 settings.json 迁移到 userData,统一运行时数据存储位置
原路径 ~/.openclaw/EasiestClaw-desktop/settings.json 在 OpenClaw
目录内,不是标准 Windows 数据目录,且卸载时无法被 NSIS 脚本清理。

迁移到 app.getPath('userData')(%AppData%\EasiestClaw\settings.json),
与其他运行时文件(.openclaw-version / .device-identity.json / .firewall-rule-added)
统一存放,卸载时随 AppData 目录一起清除。

同步移除已无用的 SETTINGS_DIR_NAME 常量(branding.ts / apply-branding.mjs / app.config.mjs)。
2026-03-14 23:25:16 +08:00

23 lines
1.3 KiB
JavaScript

/**
* app.config.mjs — 品牌与应用身份配置(单一维护入口)
*
* Fork 后只需修改这里,然后运行 `pnpm run brand` 即可同步所有相关文件。
* 图标文件另行替换 resources/icon.png / icon.ico / icon.icns 后重新构建即可。
*
* 运行后会更新:
* src/shared/branding.ts — TypeScript 常量(main + renderer 使用)
* resources/installer.nsh — Windows NSIS 安装脚本
* package.json — description / build.appId / build.productName
*/
export default {
// ── 应用身份 ────────────────────────────────────────────────────────────────
appName: 'EasiestClaw', // UI 显示名称
appId: 'com.EasiestClaw.desktop', // 反向域名,需全局唯一
productName: 'EasiestClaw', // 安装包 / Dock 名称
description: 'EasiestClaw Desktop - OpenClaw GUI',
// ── Windows 防火墙 ───────────────────────────────────────────────────────────
firewallRuleName: 'EasiestClaw', // Windows Defender 规则名称
}