diff --git a/README.md b/README.md index 6d7135ac..363bbcb4 100644 --- a/README.md +++ b/README.md @@ -4,29 +4,31 @@ [简体中文 README](README.zh-CN.md) -Before proceeding, ensure that `Node.js` and `npm` are installed. - -```bash -node --version -npm --version -``` - -If `Node.js` and `npm` are not installed in your environment, refer to the installation guides provided below: - -* English version: [https://nodejs.org/en/download](https://nodejs.org/en/download) -* Chinese version: [https://nodejs.org/zh-cn/download](https://nodejs.org/zh-cn/download) - -Select the version that best matches your device specifications and operating system. - -Install the `deepseek-tui` now: +## Install + +`deepseek` ships as a self-contained Rust binary — **no Node.js or Python +runtime is required to run it.** Pick whichever path you already have on +your machine; they all land the same binary on your `PATH`. ```bash +# 1. npm — easiest if you already use Node. The npm package is a thin +# installer that downloads the matching prebuilt binary from GitHub +# Releases; it does NOT add a Node runtime dependency to deepseek itself. npm install -g deepseek-tui -# When installing deepseek-tui in China's internet environment, you can use an npm mirror to speed up the installation process. -# npm install -g deepseek-tui@latest --registry=https://registry.npmmirror.com +# 2. Cargo — no Node needed. +cargo install deepseek-tui-cli --locked # `deepseek` (entry point) +cargo install deepseek-tui --locked # `deepseek-tui` (TUI binary) + +# 3. Direct download — no Node, no toolchain. +# https://github.com/Hmbown/DeepSeek-TUI/releases +# Prebuilt for Linux x64/ARM64, macOS x64/ARM64, Windows x64. ``` +> In mainland China, speed up the npm path with +> `--registry=https://registry.npmmirror.com`, or use the +> [Cargo mirror](#china--mirror-friendly-installation) below. + [![CI](https://github.com/Hmbown/DeepSeek-TUI/actions/workflows/ci.yml/badge.svg)](https://github.com/Hmbown/DeepSeek-TUI/actions/workflows/ci.yml) [![npm](https://img.shields.io/npm/v/deepseek-tui)](https://www.npmjs.com/package/deepseek-tui) [![crates.io](https://img.shields.io/crates/v/deepseek-tui-cli?label=crates.io)](https://crates.io/crates/deepseek-tui-cli) diff --git a/README.zh-CN.md b/README.zh-CN.md index 0b92ad64..98d6109f 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -4,10 +4,29 @@ [English README](README.md) +## 安装 + +`deepseek` 是单一 Rust 二进制——**运行时不依赖 Node.js 或 Python**。 +下面三种方式装出来的是同一个二进制,按你已有的工具链选一个即可: + ```bash -npm i -g deepseek-tui +# 1. npm —— 已装 Node 的最方便方式。npm 包只是一个下载器, +# 会从 GitHub Releases 拉取对应平台的预编译二进制, +# 并不会让 deepseek 本身依赖 Node 运行时。 +npm install -g deepseek-tui + +# 2. Cargo —— 无需 Node。 +cargo install deepseek-tui-cli --locked # `deepseek` 入口 +cargo install deepseek-tui --locked # `deepseek-tui` TUI 二进制 + +# 3. 直接下载 —— 无需任何工具链。 +# https://github.com/Hmbown/DeepSeek-TUI/releases +# 覆盖 Linux x64/ARM64、macOS x64/ARM64、Windows x64 ``` +> 中国大陆访问较慢时,npm 可加 `--registry=https://registry.npmmirror.com`, +> 或使用下方的 [Cargo 镜像](#中国大陆--镜像友好安装)。 + [![CI](https://github.com/Hmbown/DeepSeek-TUI/actions/workflows/ci.yml/badge.svg)](https://github.com/Hmbown/DeepSeek-TUI/actions/workflows/ci.yml) [![npm](https://img.shields.io/npm/v/deepseek-tui)](https://www.npmjs.com/package/deepseek-tui) [![crates.io](https://img.shields.io/crates/v/deepseek-tui-cli?label=crates.io)](https://crates.io/crates/deepseek-tui-cli)