- 基于 Electron + React 的跨平台桌面应用 - 支持多 Bot ID 和 Secret 配置 - 双 WebSocket 长连接(企业微信 + OpenClaw Gateway) - 图形化配置界面,实时连接状态显示 - 自动重连机制 - 支持 Windows/macOS/Linux 打包 技术栈: - Electron 28 - React 18 - @wecom/aibot-node-sdk - electron-store 配置持久化
64 lines
1.6 KiB
JSON
64 lines
1.6 KiB
JSON
{
|
|
"name": "wecome-openclaw-client",
|
|
"version": "1.0.0",
|
|
"description": "WeCom OpenClaw Client - 企业微信智能机器人图形配置客户端",
|
|
"main": "electron/main.js",
|
|
"scripts": {
|
|
"start": "concurrently \"npm run dev:electron\" \"npm run dev:react\"",
|
|
"dev:electron": "wait-on http://localhost:3000 && NODE_ENV=development electron .",
|
|
"dev:react": "cd renderer && npm run start",
|
|
"build": "npm run build:react && npm run build:electron",
|
|
"build:react": "cd renderer && npm run build",
|
|
"build:electron": "electron-builder",
|
|
"pack": "electron-builder --dir",
|
|
"dist": "electron-builder",
|
|
"dist:win": "electron-builder --win",
|
|
"dist:mac": "electron-builder --mac",
|
|
"dist:linux": "electron-builder --linux"
|
|
},
|
|
"keywords": [
|
|
"wecom",
|
|
"openclaw",
|
|
"electron",
|
|
"bot",
|
|
"websocket"
|
|
],
|
|
"author": "徐总",
|
|
"license": "MIT",
|
|
"devDependencies": {
|
|
"concurrently": "^8.2.2",
|
|
"electron": "^28.1.0",
|
|
"electron-builder": "^24.9.1",
|
|
"wait-on": "^7.2.0"
|
|
},
|
|
"dependencies": {
|
|
"@wecom/aibot-node-sdk": "^1.0.0",
|
|
"ws": "^8.16.0",
|
|
"electron-store": "^8.1.0",
|
|
"uuid": "^9.0.1"
|
|
},
|
|
"build": {
|
|
"appId": "com.toncent.wecome-openclaw-client",
|
|
"productName": "WeCom OpenClaw Client",
|
|
"directories": {
|
|
"output": "dist"
|
|
},
|
|
"files": [
|
|
"electron/**/*",
|
|
"renderer/build/**/*"
|
|
],
|
|
"win": {
|
|
"target": ["nsis"],
|
|
"icon": "resources/icon.ico"
|
|
},
|
|
"mac": {
|
|
"target": ["dmg"],
|
|
"icon": "resources/icon.icns"
|
|
},
|
|
"linux": {
|
|
"target": ["AppImage", "deb"],
|
|
"icon": "resources/icon.png"
|
|
}
|
|
}
|
|
}
|