Skip to content

v2.3.2 — 跨平台部署链路加固

Choose a tag to compare

@one-ea one-ea released this 26 Apr 13:58
· 44 commits to main since this release
fa43f18

跨平台部署链路加固

源自 H005 Linux 端到端实测 + Win/Mac 平台推演。

🛠️ 部署脚本(scripts/deploy-cloudflare.mjs)

checkPrerequisites() 末尾追加 Windows 11 环境卫生预检(仅 IS_WIN 触发,非阻断):

  • W4:git autocrlf 检测git config --get core.autocrlf=true 时给出 hint,避免 wrangler.toml / *.mjs 被改成 CRLF 导致 wrangler 解析报怪错
  • W5:OneDrive 同步目录检测 — 正则 (?:^|[\\/])onedrive(?:[\s\-\\/]|[A-Za-z]|$)/i 覆盖:
    • 个人版 OneDrive
    • 企业版 OneDrive - Contoso
    • 历史变体 OneDriveCommercial / OneDrive-Personal
    • 不误匹配 onedrive_user / my-onedrive-backup
    • 9/9 单测全过

📚 Wiki 文档(Deployment.md)

  • 步骤 2 新增「Windows 11 前置卫生」章节(autocrlf / OneDrive / Defender 三条)
  • 步骤 2 新增「macOS 注意点」(Apple Silicon 不要 brew install wrangler / Gatekeeper 首次 OAuth 警告)
  • 步骤 5 验证段补 /api/auth/login curl 示例(实测发现首次部署用户易误用 /api/admin/login 报 401

🤝 Reviewers

  • CodeRabbit 提出 OneDrive 企业版漏检 issue,已修复并扩展正则(详见 PR #58

📦 Pull Requests

  • #58 chore(deploy): warn Windows users about autocrlf and OneDrive paths
  • #59 chore(release): v2.3.2

Full Changelog: v2.3.1...v2.3.2