From 4bf59e9975c78cbceb336778a631f36eccd53540 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=A6=E6=B8=8A?= <101690169+666666g@users.noreply.github.com> Date: Mon, 6 Jul 2026 21:21:51 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E8=A1=A5=E5=85=A8=E4=B8=8D=E5=90=8C?= =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E4=B8=8B=E7=BC=96=E8=AF=91=E8=BF=90=E8=A1=8C?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E7=9A=84=E6=AD=A5=E9=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 分别为中文和英文README添加Windows(PowerShell)以及Linux/macOS的编译运行命令,完善部署文档 --- README.md | 9 +++++++++ README.zh-CN.md | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/README.md b/README.md index 37a91207..0d3c896a 100644 --- a/README.md +++ b/README.md @@ -76,11 +76,20 @@ docker compose -f deploy/docker-compose.yml up -d Build and run the single server program: +Windows (PowerShell): + ```powershell go build -o bin/gramsrv.exe ./cmd/telesrv .\bin\gramsrv.exe ``` +Linux / macOS: + +```bash +go build -o bin/gramsrv ./cmd/telesrv +./bin/gramsrv +``` + On first start, `gramsrv` creates `data/server_rsa.pem`, applies database migrations, seeds bundled language packs, prepares optional media resources, starts MTProto on `0.0.0.0:2398`, and brings up the update/media/background diff --git a/README.zh-CN.md b/README.zh-CN.md index c70d21b2..6c0af36e 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -71,11 +71,20 @@ docker compose -f deploy/docker-compose.yml up -d 编译并启动唯一的 server 程序: +Windows (PowerShell): + ```powershell go build -o bin/gramsrv.exe ./cmd/telesrv .\bin\gramsrv.exe ``` +Linux / macOS: + +```bash +go build -o bin/gramsrv ./cmd/telesrv +./bin/gramsrv +``` + 第一次启动时,`gramsrv` 会创建 `data/server_rsa.pem`,自动执行数据库 migrations,导入内置语言包,准备可选媒体资源,在 `0.0.0.0:2398` 监听 MTProto,并在同一进程里启动 updates、media、后台调度等 worker。 常用本地环境变量: