- 微信扫码卡死: config-server 跟随 IDC scaned_but_redirect 把后续轮询切到 redirect_host,刷新二维码时重置 pollBaseUrl(扫码后不再卡住等不到 confirmed)。新增测试。 - Telegram 渠道改用 botToken(顶层 telegram 只认 botToken,旧 token 别名被静默忽略 → 连不上)。 - Windows-Start: 先起 config-server 再探测 gateway 端口,从 runtime.json 读实际 configServerPort 并按该端口开 Config Center / 传给 wait-gateway(18788 被占也能开)。 - wait-gateway.bat: 用 ping 代替 timeout /t(避开 PATH 上 GNU coreutils timeout 冲突),接受 CONFIG_PORT 参数。 - Windows-Menu: IF 块内 echo 的 () 转义为 ^(^),修 v2.1.10 闪退回归。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
128 lines
3.1 KiB
JSON
128 lines
3.1 KiB
JSON
{
|
|
"name": "u-claw",
|
|
"version": "2.1.11",
|
|
"description": "U-Claw - AI 助手桌面版,插上 U 盘就能用",
|
|
"main": "src/main.js",
|
|
"author": "U-Claw <hello@u-claw.org> (https://u-claw.org)",
|
|
"license": "MIT",
|
|
"homepage": "https://u-claw.org",
|
|
"scripts": {
|
|
"sync-lib": "node scripts/sync-lib.js",
|
|
"start": "npm run sync-lib && electron .",
|
|
"dev": "npm run sync-lib && electron . --dev",
|
|
"build:mac": "npm run sync-lib && electron-builder --mac",
|
|
"build:mac-arm64": "npm run sync-lib && electron-builder --mac --arm64",
|
|
"build:mac-x64": "npm run sync-lib && electron-builder --mac --x64",
|
|
"build:win": "npm run sync-lib && electron-builder --win",
|
|
"build:all": "npm run sync-lib && electron-builder --mac --win",
|
|
"postinstall": "electron-builder install-app-deps"
|
|
},
|
|
"build": {
|
|
"appId": "org.u-claw.desktop",
|
|
"productName": "U-Claw",
|
|
"copyright": "Copyright © 2026 U-Claw",
|
|
"directories": {
|
|
"output": "release"
|
|
},
|
|
"files": [
|
|
"src/**/*",
|
|
"assets/**/*",
|
|
"node_modules/**/*",
|
|
"!node_modules/**/*.md",
|
|
"!node_modules/**/CHANGELOG*",
|
|
"!node_modules/**/test/**",
|
|
"!node_modules/**/tests/**",
|
|
"!node_modules/**/.cache"
|
|
],
|
|
"asar": false,
|
|
"extraResources": [
|
|
{
|
|
"from": "resources/Config.html",
|
|
"to": "resources/Config.html"
|
|
},
|
|
{
|
|
"from": "resources/context",
|
|
"to": "resources/context"
|
|
},
|
|
{
|
|
"from": "resources/runtime/node-${platform}-${arch}",
|
|
"to": "resources/runtime/node-${platform}-${arch}"
|
|
}
|
|
],
|
|
"mac": {
|
|
"category": "public.app-category.developer-tools",
|
|
"icon": "assets/icon.icns",
|
|
"identity": null,
|
|
"target": [
|
|
{
|
|
"target": "dmg",
|
|
"arch": [
|
|
"arm64",
|
|
"x64"
|
|
]
|
|
}
|
|
],
|
|
"hardenedRuntime": false,
|
|
"gatekeeperAssess": false
|
|
},
|
|
"dmg": {
|
|
"title": "U-Claw",
|
|
"icon": "assets/icon.icns",
|
|
"contents": [
|
|
{
|
|
"x": 130,
|
|
"y": 220
|
|
},
|
|
{
|
|
"x": 410,
|
|
"y": 220,
|
|
"type": "link",
|
|
"path": "/Applications"
|
|
}
|
|
]
|
|
},
|
|
"win": {
|
|
"target": [
|
|
{
|
|
"target": "nsis",
|
|
"arch": [
|
|
"x64"
|
|
]
|
|
},
|
|
{
|
|
"target": "portable",
|
|
"arch": [
|
|
"x64"
|
|
]
|
|
}
|
|
],
|
|
"icon": "assets/icon.ico"
|
|
},
|
|
"nsis": {
|
|
"oneClick": true,
|
|
"perMachine": false,
|
|
"allowToChangeInstallationDirectory": false,
|
|
"installerIcon": "assets/icon.ico",
|
|
"uninstallerIcon": "assets/icon.ico",
|
|
"installerHeaderIcon": "assets/icon.ico",
|
|
"createDesktopShortcut": true,
|
|
"createStartMenuShortcut": true,
|
|
"shortcutName": "U-Claw"
|
|
},
|
|
"linux": {
|
|
"target": [
|
|
"AppImage"
|
|
],
|
|
"icon": "assets/icon.png",
|
|
"category": "Development"
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"openclaw": "latest"
|
|
},
|
|
"devDependencies": {
|
|
"electron": "^35.0.0",
|
|
"electron-builder": "^26.0.0"
|
|
}
|
|
}
|