Add native Windows PowerShell installer script (install.ps1)

- Add scripts/install.ps1 for native Windows (PowerShell) one-line bootstrap (irm ... | iex) without requiring WSL2, Node.js, or Bun.
- Support candidate mirror failover (Gitea primary, GitHub fallback), SHA-256 checksum verification, non-admin User PATH configuration, and automatic Agent Skill initialization.
- Update README.md, skills/seal-use/SKILL.md, and scripts/README.md to document the Windows one-liner installation.
This commit is contained in:
gitea committed 2026-11-17 15:44:33 +08:00
1 parent e88f472b50
commit 09c72d998a
4 files changed
+337 -5

No files matched your search

+3 -2
View File
@@ -20,7 +20,8 @@ scripts/
├── bump-version.ts # 多清单版本原子同步(package.json / plugin.json / SKILL.md 等)
├── release.ts # 受控保护分支发布流水线(严格遵循 merge-before-tag)
├── dev-override.ts # 本地开发二进制编译与全局 PATH 覆盖测试
├── install.sh # 生产级免 sudo 快速安装 Shell 脚本(公开 cURL 入口,不可移动)
├── install.sh # 生产级免 sudo 快速安装 Shell 脚本(macOS / Linux 公开 cURL 入口,不可移动)
├── install.ps1 # 生产级免管理员提权快速安装 PowerShell 脚本(Windows 原生公开 irm 入口)
│
├── generate-cli-md.mjs # 从 CLI 注册表自动生成 references/cli.md
├── check-cli-md.mjs # CLI 文档防漂移校验
@@ -36,6 +37,6 @@ scripts/
1. **绝对隔离**:`src/` 业务代码不可依赖 `scripts/`。`scripts/` 是外部工具,不是领域服务。
2. **高危受限脚本**:
- `release.ts` 与 `bump-version.ts` 具有强版本与 Git 标签推进副作用,**必须且仅能在人类明确发出发布指令时**通过 `bun run release` 调度,任何 Agent 不得擅自调用。
- `install.sh` 是被公开文档直接通过 `curl .../scripts/install.sh | bash` 引用的外部入口,路径不可擅改。
- `install.sh` 与 `install.ps1` 是被公开文档直接通过 `curl .../install.sh | bash` 与 `irm .../install.ps1 | iex` 引用的外部安装入口,路径不可擅改。
3. **治理优先**:
- 日常执行 `bun test` 会自动回归 `scripts/governance/*.test.ts`,确保治理规则与真实文件不漂移。