bookworm
d87b92319f
chore: 清理过期文件 (-2731 行) + AuthGen 历史记录功能
...
删除:
- 5 个旧版 .bat 安装器 (已被 auto-setup.ps1 EXE 替代)
- 4 个旧版 HTML 指南 (已被 guide-unified.html 替代)
- encrypt-secrets.ps1 (已被 gen-authcode.js 替代)
- lessons-learned.md (开发备忘, 非功能文件)
- 6 个未提交测试 .enc + 备份文件 (本地清理)
新增:
- AuthGen GUI: 生成成功后自动追加 authcode-history.log
- AuthGen GUI: "推送到 Gitea" 按钮 (git add + commit + push 一键完成)
- AuthGen GUI: $args→$nodeArgs (PowerShell 保留变量冲突)
- AuthGen GUI: UTF-8 Process 编码 (修复 PS2EXE 中文乱码)
- .gitignore: +authcode-history.log +Bookworm-AuthGen.exe
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 03:20:39 +08:00
bookworm
c2e3f0e65f
fix(admin): AuthGen $y 类型修复 — [int]$y 防止 PS2EXE Object[] 降级
...
PS2EXE 编译后 $y 被隐式当作 Object[], 导致 $y - 2 算术运算失败:
"Method invocation failed because [System.Object[]] does not contain
a method named 'op_Subtraction'"
修复: 强类型声明 [int]$y = 72
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 02:15:10 +08:00
bookworm
dba9d19129
fix(admin): AuthGen EXE 在 dist/ 子目录运行时找不到 gen-authcode.js
...
ScriptDir 指向 EXE 所在目录 (dist/), 但 gen-authcode.js 和
secrets.txt 在父目录。添加向上一级查找的 fallback 逻辑。
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 02:10:15 +08:00
bookworm
353bbffada
feat(admin): GUI 授权码生成器 Bookworm-AuthGen.exe
...
新增管理员可视化工具, 替代 CLI gen-authcode.js:
- WinForms GUI: 用户名/Sub-Key/有效期 + 一键生成 + 一键复制
- 品牌视觉: 白底 + #5865F2 蓝紫 + 深色标题栏 + 书虫学者图标
- PS2EXE -NoConsole -NoOutput (92 KB)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 01:59:27 +08:00