docs: guide v1.3 password section, uninstall, credential cache
This commit is contained in:
parent
710f287f64
commit
1e914162dd
68
guide.html
68
guide.html
@ -212,18 +212,26 @@
|
||||
<!-- 整体流程 -->
|
||||
<div class="section">
|
||||
<h2>整体流程概览</h2>
|
||||
|
||||
<div class="card" style="text-align:center;border-color:var(--green);margin-bottom:1.5rem">
|
||||
<h3 style="color:var(--green);margin-bottom:0.5rem">最快方式:一键安装器</h3>
|
||||
<p style="color:var(--text-dim);font-size:0.9rem;margin-bottom:0.8rem">获取 <strong>Bookworm-Setup.bat</strong> (4KB) → 双击运行 → 输入密码 → 完成</p>
|
||||
<p style="font-size:0.8rem;color:var(--text-dim)">安装器自动检测依赖、下载配置、创建桌面快捷方式、启动 Claude Code</p>
|
||||
</div>
|
||||
|
||||
<p style="text-align:center;color:var(--text-dim);font-size:0.85rem;margin-bottom:0.5rem">手动安装流程:</p>
|
||||
<div class="flow">
|
||||
<div class="flow-node">安装依赖<br><small style="color:var(--text-dim)">Node.js + Git</small></div>
|
||||
<span class="flow-arrow">➔</span>
|
||||
<div class="flow-node">安装 Claude Code<br><small style="color:var(--text-dim)">npm 全局安装</small></div>
|
||||
<span class="flow-arrow">➔</span>
|
||||
<div class="flow-node">克隆引导仓库<br><small style="color:var(--text-dim)">3 个文件</small></div>
|
||||
<div class="flow-node">双击安装器<br><small style="color:var(--text-dim)">或 git clone</small></div>
|
||||
<span class="flow-arrow">➔</span>
|
||||
<div class="flow-node">运行安装脚本<br><small style="color:var(--text-dim)">输入密码</small></div>
|
||||
<div class="flow-node">输入密码<br><small style="color:var(--text-dim)">主密码</small></div>
|
||||
<span class="flow-arrow">➔</span>
|
||||
<div class="flow-node active">开始使用<br><small style="color:var(--green)">Bookworm 激活</small></div>
|
||||
</div>
|
||||
<p style="text-align:center;color:var(--text-dim);font-size:0.9rem">全程约 10-15 分钟(含下载时间),之后每次启动只需 30 秒</p>
|
||||
<p style="text-align:center;color:var(--text-dim);font-size:0.9rem">首次安装约 10 分钟(含依赖下载),之后每次双击启动约 10-30 秒</p>
|
||||
</div>
|
||||
|
||||
<!-- ============================================================ -->
|
||||
@ -498,15 +506,59 @@ Start-Process msiexec.exe -ArgumentList "/i $env:TEMP\node-install.msi" -Wait</c
|
||||
<!-- ============================================================ -->
|
||||
<!-- 使用完毕 -->
|
||||
<!-- ============================================================ -->
|
||||
<!-- ============================================================ -->
|
||||
<!-- 密码说明 -->
|
||||
<!-- ============================================================ -->
|
||||
<div class="section">
|
||||
<h2><span class="num">5</span>使用完毕 — 清理</h2>
|
||||
<h2><span class="num">5</span>密码说明</h2>
|
||||
|
||||
<div class="card">
|
||||
<h3>本系统有两个密码,不要搞混</h3>
|
||||
<table>
|
||||
<tr><th>名称</th><th>用途</th><th>何时输入</th></tr>
|
||||
<tr><td><strong>Gitea 密码</strong></td><td>下载文件(克隆仓库)</td><td>首次安装时 git 弹出要求</td></tr>
|
||||
<tr><td><strong>主密码</strong></td><td>解密 API 凭证</td><td>每次启动脚本提示输入</td></tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="alert info">
|
||||
<span class="alert-icon">💡</span>
|
||||
<div>
|
||||
<strong>密码输错了?</strong> 最多可以重试 3 次,不用紧张。3 次都错才会退出。
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card" style="margin-top:0.8rem">
|
||||
<h3>本日免密功能</h3>
|
||||
<p>首次解密成功后,脚本会询问 <strong>"今日内免密启动? (y/n)"</strong></p>
|
||||
<p>选 <strong>y</strong> 后,当天再次启动无需输入主密码,次日自动过期。</p>
|
||||
<p style="color:var(--text-dim);font-size:0.85rem;margin-top:0.3rem">凭证缓存在 Windows Credential Manager 中(DPAPI 加密,仅当前用户可读)。</p>
|
||||
</div>
|
||||
|
||||
<div class="alert warning" style="margin-top:0.8rem">
|
||||
<span class="alert-icon">🔒</span>
|
||||
<div><strong>主密码无法找回</strong> — 忘记后联系管理员重新生成 secrets.enc。</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- ============================================================ -->
|
||||
<!-- 使用完毕 -->
|
||||
<!-- ============================================================ -->
|
||||
<div class="section">
|
||||
<h2><span class="num">6</span>使用完毕 — 清理 / 卸载</h2>
|
||||
|
||||
<div class="card" style="border-color:var(--green)">
|
||||
<h3 style="color:var(--green)">最简单:双击 卸载Bookworm.bat</h3>
|
||||
<p>bookworm-boot 文件夹里的 <strong>卸载Bookworm.bat</strong>,双击即可一键完整卸载:终止进程 + 清除凭证 + 恢复原始配置 + 删除桌面快捷方式。</p>
|
||||
</div>
|
||||
|
||||
<p style="margin-top:1rem;color:var(--text-dim);font-size:0.9rem">或者用命令行精细控制:</p>
|
||||
<table>
|
||||
<tr><th>场景</th><th>命令</th><th>说明</th></tr>
|
||||
<tr>
|
||||
<td><strong>基础清理</strong></td>
|
||||
<td><code>pwsh -File stop.ps1</code></td>
|
||||
<td>清除环境变量,保留配置下次快速启动</td>
|
||||
<td>清除环境变量,保留配置供下次快速启动</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>完整恢复</strong></td>
|
||||
@ -516,15 +568,15 @@ Start-Process msiexec.exe -ArgumentList "/i $env:TEMP\node-install.msi" -Wait</c
|
||||
<tr>
|
||||
<td><strong>深度清理</strong></td>
|
||||
<td><code>pwsh -File stop.ps1 -Restore -Deep</code></td>
|
||||
<td>完整恢复 + 清除历史记录 + 清除 Git 缓存</td>
|
||||
<td>完整恢复 + 清除历史 + 清除 Git/凭证缓存</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class="alert danger">
|
||||
<span class="alert-icon">⚠</span>
|
||||
<div>
|
||||
<strong>在他人电脑/公用电脑上务必执行深度清理:</strong><br>
|
||||
<code>pwsh -ExecutionPolicy Bypass -File stop.ps1 -Restore -Deep</code>
|
||||
<strong>在他人电脑/公用电脑上务必卸载:</strong><br>
|
||||
双击 <strong>卸载Bookworm.bat</strong> 或执行 <code>pwsh -File stop.ps1 -Restore -Deep</code>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user