From 6e599dbe3396d1d8f4c0732d602fef0516c8bc23 Mon Sep 17 00:00:00 2001 From: jackwener Date: Thu, 16 Apr 2026 15:29:39 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20README=20=E5=AE=89=E8=A3=85=E6=96=B9?= =?UTF-8?q?=E5=BC=8F=E5=A2=9E=E5=8A=A0=20cargo=20install=20wx-cli?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cargo.lock | 2 +- README.md | 14 +++++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 683b414..872b89c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1259,7 +1259,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5" [[package]] -name = "wx" +name = "wx-cli" version = "0.1.0" dependencies = [ "aes", diff --git a/README.md b/README.md index 19b7361..72df553 100644 --- a/README.md +++ b/README.md @@ -25,9 +25,17 @@ wx (CLI) ──Unix socket──▶ wx-daemon (后台进程) - WeChat 4.x(macOS 版) - 首次使用需 `sudo`(内存扫描) -### 下载 +### 安装 -从 [Releases](https://github.com/jackwener/wx-cli/releases) 下载对应平台的预编译二进制: +**方式一:cargo install(推荐)** + +```bash +cargo install wx-cli +``` + +**方式二:下载预编译二进制** + +从 [Releases](https://github.com/jackwener/wx-cli/releases) 下载对应平台的文件: | 平台 | 文件名 | |------|--------| @@ -43,7 +51,7 @@ chmod +x wx sudo mv wx /usr/local/bin/ ``` -### 从源码构建 +**方式三:从源码构建** ```bash git clone git@github.com:jackwener/wx-cli.git