From eea851737fc93864aae6380c6404b046757bc179 Mon Sep 17 00:00:00 2001 From: wangjia <809946525@qq.com> Date: Mon, 22 Jun 2026 14:17:48 +0800 Subject: [PATCH] =?UTF-8?q?docs(client/windows):=20=E5=90=88=E5=B9=B6?= =?UTF-8?q?=E5=90=8E=E6=A0=A1=E6=AD=A3=20README=20API=20=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=80=BC=E8=AF=B4=E6=98=8E(=E5=B7=B2=E9=9A=8F=20main=20?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E6=B5=8B=E8=AF=95=E8=8A=82=E7=82=B9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 --- client/windows/README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/windows/README.md b/client/windows/README.md index af9347a..671eb91 100644 --- a/client/windows/README.md +++ b/client/windows/README.md @@ -63,8 +63,9 @@ cd client # 必须带 --dart-define 指定后端,否则默认连 localhost:8080,登录会「网络请求失败」 flutter build windows --dart-define=PANGOLIN_API_URL=http://<后端IP>:8080 ``` -> ⚠️ `kApiBaseUrl` 默认值是 `http://localhost:8080`(见 `lib/services/api_config.dart`)。 -> Release 包必须显式 `--dart-define=PANGOLIN_API_URL=...`,构建期烘进二进制;漏了会复现登录失败。 +> ⚠️ `kApiBaseUrl`(见 `lib/services/api_config.dart`)当前默认值是联调测试节点(临时,发版前会改回 localhost/正式域名)。 +> 正式 Release 包**务必显式** `--dart-define=PANGOLIN_API_URL=...` 指定后端,构建期烘进二进制; +> 一旦默认值改回 localhost,漏传 dart-define 就会复现登录「网络请求失败」。 CMake 的 install 步骤会自动把 `app/kernel/dist/desktop/windows-*/{sing-box.exe, wintun.dll}` 拷到 app `.exe` 同级目录(见 `windows/CMakeLists.txt` 的「Pangolin sing-box kernel」段)。