diff --git a/web/app/[locale]/install/page.tsx b/web/app/[locale]/install/page.tsx index 5ca2a8b4..2112aba2 100644 --- a/web/app/[locale]/install/page.tsx +++ b/web/app/[locale]/install/page.tsx @@ -19,6 +19,8 @@ const FIRST_RUN = `deepseek`; const VERIFY = `deepseek --version deepseek doctor`; +const UPDATE = `deepseek update`; + const SET_KEY_BASH = `export DEEPSEEK_API_KEY=sk-...`; const SET_KEY_AUTH = `deepseek auth set --provider deepseek --api-key sk-...`; @@ -149,11 +151,42 @@ export default async function InstallPage({ params }: { params: Promise<{ locale

- {/* ③ FIRST RUN */} + {/* ③ UPDATE */} +
+
+ +
{isZh ? "03 · 更新" : "03 · Update"}
+
+ + + +

+ {isZh ? ( + <> + 检查 GitHub Releases 是否有新版本并就地替换二进制。 + 通过 Homebrew 或 npm 安装的话,使用包管理器升级更稳: + brew upgrade deepseek-tui 或{" "} + npm update -g deepseek-tui。 + Cargo 安装的可以重跑{" "} + cargo install deepseek-tui-cli --locked --force。 + + ) : ( + <> + Checks GitHub Releases for a newer version and replaces the binary in place. If you + installed via Homebrew or npm, prefer the package manager instead:{" "} + brew upgrade deepseek-tui or{" "} + npm update -g deepseek-tui. Cargo users can re-run{" "} + cargo install deepseek-tui-cli --locked --force. + + )} +

+
+ + {/* ④ FIRST RUN */}
-
{isZh ? "03 · 首次运行" : "03 · First run"}
+
{isZh ? "04 · 首次运行" : "04 · First run"}
    @@ -220,12 +253,12 @@ export default async function InstallPage({ params }: { params: Promise<{ locale
- {/* ④ OTHER WAYS TO INSTALL */} + {/* ⑤ OTHER WAYS TO INSTALL */}
-
{isZh ? "04 · 其他安装方式" : "04 · Other ways to install"}
+
{isZh ? "05 · 其他安装方式" : "05 · Other ways to install"}

{isZh ? "其他安装方式" : "Other ways to install"} @@ -360,12 +393,12 @@ export default async function InstallPage({ params }: { params: Promise<{ locale

- {/* ⑤ WHERE CONFIG LIVES */} + {/* ⑥ WHERE CONFIG LIVES */}
- {isZh ? "05 · 配置文件位置" : "05 · Where config lives"} + {isZh ? "06 · 配置文件位置" : "06 · Where config lives"}

diff --git a/web/app/[locale]/page.tsx b/web/app/[locale]/page.tsx index b1928828..091e0807 100644 --- a/web/app/[locale]/page.tsx +++ b/web/app/[locale]/page.tsx @@ -148,35 +148,31 @@ export default async function HomePage({ params }: { params: Promise<{ locale: s
                 {isZh ? (
                   <>
-                    # macOS / Linux — Cargo{"\n"}
+                    # 安装{"\n"}
                     $ cargo install deepseek-tui-cli --locked{"\n"}
                     $ deepseek{"\n"}
                     
- # 或通过 npm 安装{"\n"} - $ npm i -g deepseek-tui{"\n"} + # 已安装?更新到最新版{"\n"} + $ deepseek update{"\n"}
- # 首次运行会自动创建 ~/.deepseek/{"\n"} -
- # 国内镜像{"\n"} - $ npm config set registry https://registry.npmmirror.com{"\n"} - $ npm i -g deepseek-tui + # 首次运行会自动创建 ~/.deepseek/ ) : ( <> - # macOS / Linux — Cargo{"\n"} + # install{"\n"} $ cargo install deepseek-tui-cli --locked{"\n"} $ deepseek{"\n"}
- # or via npm wrapper{"\n"} - $ npm i -g deepseek-tui{"\n"} + # already installed? pull the latest{"\n"} + $ deepseek update{"\n"}
# first run sets up ~/.deepseek/ )}
- {isZh ? `需要 Rust 1.88+ 或 Node ${facts.nodeEngines ?? ">=18"}` : `requires Rust 1.88+ or Node ${facts.nodeEngines ?? ">=18"}`} - {isZh ? "其他系统 →" : "other OSes →"} + {isZh ? "需要 Rust 1.88+ · 没有 Rust? 见其他方式" : "requires Rust 1.88+ · no Rust? see other ways"} + {isZh ? "其他方式 →" : "other ways →"}
diff --git a/web/lib/facts.generated.ts b/web/lib/facts.generated.ts index 2f0bd80e..1dccf958 100644 --- a/web/lib/facts.generated.ts +++ b/web/lib/facts.generated.ts @@ -18,7 +18,7 @@ export interface RepoFacts { } export const FACTS: RepoFacts = { - "generatedAt": "2026-05-14T19:34:46.542Z", + "generatedAt": "2026-05-14T19:43:39.727Z", "version": "0.8.37", "crates": [ "agent",