GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — chatbot/desktop at main · EternalNight996/chatbot

Expand file tree

/

desktop

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

desktop

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
scripts
scripts
 
 
src-tauri
src-tauri
 
 
ui
ui
 
 
README.md
README.md
 
 
launcher.py
launcher.py
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 

README.md

Outline

Chatbot · 桌面端(Tauri 2)

v1.2.3:连接已有控制面的 瘦客户端。窗口先显示本地 splash,探测到 8787 后再进入总控台。

定位与边界(本轮)

  • 只连接已有控制面 http://127.0.0.1:8787(可用 CCP_DESKTOP_URL 覆盖)。
  • 不自带、不拉起 sidecar:src-tauri/resources/ccp 仅保留 .keep 占位;安装包内没有 ccp.exe。
  • 不自带数据库:客户端进程不写 D:\Chatbot\data。旧版本留下的 %APPDATA%\Chatbot\data\ccp.db 只是一份历史数据,不是生产库。
  • 控制面由计划任务 Chatbot-QD-Start 或 D:\Chatbot\app 负责启动与守护。

启动行为

  1. 窗口加载本地 ui/index.html(splash),不会直接显示 WebView 的 ERR_CONNECTION_REFUSED。
  2. Rust 后台探测目标端口(默认 8787)。
  3. 端口通:自动 navigate 到 CCP_DESKTOP_URL,进入总控台。
  4. 端口不通:splash 显示可读错误页——“控制面未启动或 8787 无响应”、启动提示和“重试”按钮;后台继续每 2 秒提示、每 500ms 探测,控制面恢复后自动进入。
  5. 关窗 = 隐藏到托盘;托盘菜单:显示主界面 / 开机自启 / 检查更新 / 退出。

构建

# 前置:Rust + Node + WebView2(Win11 自带)
.\desktop\scripts\build.ps1

脚本会先校验 package.json、src-tauri/tauri.conf.json、src-tauri/Cargo.toml 版本一致(当前 1.2.3),再只构建 NSIS:

desktop\src-tauri\target\release\bundle\nsis\Chatbot_1.2.3_x64-setup.exe
  • NSIS 的 installMode 固定为 perMachine(tauri.conf.json → bundle.windows.nsis.installMode),默认装到 C:\Program Files\Chatbot。
  • 本轮不发 MSI:Tauri 2 的 WiX 默认 perUser,装不进 Program Files。
  • 不执行 build-sidecar.ps1;该脚本保留给 v1.3.0 自带控制面方案。

安装 / 卸载

& '.\Chatbot_1.2.3_x64-setup.exe' /S
& 'C:\Program Files\Chatbot\uninstall.exe' /S

目录

desktop/
  src-tauri/
    Cargo.toml            # 1.2.3
    tauri.conf.json       # 1.2.3 / url=index.html / nsis perMachine
    src/main.rs           # splash → 端口探测 → 跳转;托盘;关闭到托盘
    icons/
    resources/ccp/.keep   # 占位:本轮不打包 sidecar
  ui/index.html           # 本地 splash / 离线错误页 / 重试
  scripts/build.ps1       # 版本校验 + 仅 NSIS

v1.3.0:自带控制面(待设计)

若要让客户端自带控制面,必须先定清:

  1. 数据目录:%APPDATA%\Chatbot\data 与生产 D:\Chatbot\data 如何统一/迁移;
  2. 端口冲突:8787 被计划任务服务占用时的单实例/接管策略;
  3. 与 Chatbot-QD-Start 等计划任务共存,避免双控制面抢同一个库。

在上述定义完成前,1.2.x 客户端保持瘦客户端边界。

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.