完善三平台安装包与服务控制流程

统一服务默认端口为 59188,完善 Windows 服务权限与 macOS LaunchAgent 管理。

实现 Windows 与 macOS 托盘状态机、服务启停等待、单实例保护、日志目录入口和退出前清理后台服务。

统一 Linux、Windows、macOS 与 Docker 的 Playwright Chromium runtime 构建流程,增加缓存、架构校验和 Linux 原生 runner,避免 QEMU。

完善 Windows、macOS、Linux 安装包及签名打包脚本,修正 Chromium 嵌入、服务注册和安装卸载流程。

同步 README、AGENTS、官网首页、Wiki 与前端开发文档,统一端口、初始化、服务、日志、托盘和安装说明。
This commit is contained in:
Christ committed 2026-08-12 20:53:53 +08:00
1 parent 94f4e070f6
commit 2df324647a
35 files changed
+1546 -214

No files matched your search

+5 -3
View File
@@ -13,7 +13,7 @@ frontend/
services/ 后端 API 封装(fetch 调用)
request.ts 统一请求工具(带 session cookie、错误处理)
types.ts 共享类型定义
vite.config.ts Vite 配置(base=/static/,代理 /api 到 :8080)
vite.config.ts Vite 配置(base=/static/,代理 /api 到 :59188)
```
## 开发
@@ -21,10 +21,12 @@ frontend/
```bash
cd /Users/christ/Workspace/git/xianyu/Ydisks-Xianyu-Helper/frontend
npm install
npm run dev # http://localhost:3000,API 代理到 localhost:8080
npm run dev # http://localhost:3000,API 代理到 localhost:59188
```
开发时先启动后端(`go run ./cmd/server -addr :8080`),再启动前端 dev server。
开发时先启动后端(默认端口为 `59188`;桌面安装包绑定 `127.0.0.1`,源码运行可按需指定监听地址),
例如 `go run ./cmd/server -addr :59188`,再启动前端 dev server。
这里的 `localhost:3000` 仅是 Vite 开发服务器地址,不是应用服务端口。
## 构建产物
+27 -27
View File
@@ -10,113 +10,113 @@ export default defineConfig({
proxy: {
// 代理API请求到后端
'/api': {
target: 'http://localhost:8080',
target: 'http://localhost:59188',
changeOrigin: true,
ws: true,
},
// 代理其他后端请求
'/cookies': {
target: 'http://localhost:8080',
target: 'http://localhost:59188',
changeOrigin: true,
},
'/account': {
target: 'http://localhost:8080',
target: 'http://localhost:59188',
changeOrigin: true,
},
'/qr-login': {
target: 'http://localhost:8080',
target: 'http://localhost:59188',
changeOrigin: true,
},
'/password-login': {
target: 'http://localhost:8080',
target: 'http://localhost:59188',
changeOrigin: true,
},
'/keywords': {
target: 'http://localhost:8080',
target: 'http://localhost:59188',
changeOrigin: true,
},
'/keywords-with-item-id': {
target: 'http://localhost:8080',
target: 'http://localhost:59188',
changeOrigin: true,
},
'/default-reply': {
target: 'http://localhost:8080',
target: 'http://localhost:59188',
changeOrigin: true,
},
'/items': {
target: 'http://localhost:8080',
target: 'http://localhost:59188',
changeOrigin: true,
},
'/cards': {
target: 'http://localhost:8080',
target: 'http://localhost:59188',
changeOrigin: true,
},
'/automation-rules': {
target: 'http://localhost:8080',
target: 'http://localhost:59188',
changeOrigin: true,
},
'/automation-issues': {
target: 'http://localhost:8080',
target: 'http://localhost:59188',
changeOrigin: true,
},
'/automation-runs': {
target: 'http://localhost:8080',
target: 'http://localhost:59188',
changeOrigin: true,
},
'/automation-pending-tasks': {
target: 'http://localhost:8080',
target: 'http://localhost:59188',
changeOrigin: true,
},
'/notification-channels': {
target: 'http://localhost:8080',
target: 'http://localhost:59188',
changeOrigin: true,
},
'/message-notifications': {
target: 'http://localhost:8080',
target: 'http://localhost:59188',
changeOrigin: true,
},
'/ai-reply-settings': {
target: 'http://localhost:8080',
target: 'http://localhost:59188',
changeOrigin: true,
},
'/ai-models': {
target: 'http://localhost:8080',
target: 'http://localhost:59188',
changeOrigin: true,
},
'/system-settings': {
target: 'http://localhost:8080',
target: 'http://localhost:59188',
changeOrigin: true,
},
'/user-settings': {
target: 'http://localhost:8080',
target: 'http://localhost:59188',
changeOrigin: true,
},
'/admin': {
target: 'http://localhost:8080',
target: 'http://localhost:59188',
changeOrigin: true,
},
'/analytics': {
target: 'http://localhost:8080',
target: 'http://localhost:59188',
changeOrigin: true,
},
'/login': {
target: 'http://localhost:8080',
target: 'http://localhost:59188',
changeOrigin: true,
},
'/verify': {
target: 'http://localhost:8080',
target: 'http://localhost:59188',
changeOrigin: true,
},
'/logout': {
target: 'http://localhost:8080',
target: 'http://localhost:59188',
changeOrigin: true,
},
'/change-password': {
target: 'http://localhost:8080',
target: 'http://localhost:59188',
changeOrigin: true,
},
'/health': {
target: 'http://localhost:8080',
target: 'http://localhost:59188',
changeOrigin: true,
},
},