便携版在内网/离线/受控浏览器环境下"配不上、用不了、查不清"的三个痛点工具化, Win + Mac 双端,纯 Node 零依赖脚本,中文提示由 node 打印(.bat 保持纯 ASCII, .command 保持 LF),三端真机验证(本机 Win / Mac mini / 客户机 pc-7512)。 新增工具: - lib/intranet-check.mjs (+ Windows-IntranetFix.bat / Mac-IntranetFix.command) 一键体检: 代理env + 直连可达 + 真发一条对话,分清"网络不通 vs 配置错"。 - lib/setup-local-model.mjs (+ Windows-LocalModel.bat / Mac-LocalModel.command) 纯命令行配 Ollama / newapi 并当场实测,绕开打不开的 Control UI;写前自动备份+merge。 - lib/resolve-no-proxy.mjs 接入 Windows-Start.bat / Mac-Start.command: 把配置里的模型 host 写进 NO_PROXY,避免系统代理劫持内网模型请求 (OpenClaw 自身只 bypass loopback CDP,不管模型 host)。 - OpenClaw-Doctor.bat / Mac-OpenClaw-Doctor.command: 官方 doctor 的隔离进阶入口 (只读、非交互;doctor 实跑慢且 TTY-only,故不进客户一键流程)。 测试: tests/windows-launchers.test.mjs 新增回归 - 客户面 .bat 必须纯 ASCII (UTF-8 中文会被 GBK cmd 读乱,报 usebackq 不是命令) - macOS .command 必须 LF-only (CRLF 触发 bad interpreter: /bin/bash^M) 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.10",
|
|
"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"
|
|
}
|
|
}
|