chore(portable): 回归纯开源 — 移除指纹/自动开户/崩溃上报
去掉不适合开源的商业逻辑,保持一个纯粹的开源 U 盘工具: - 删除设备指纹 (fingerprint.mjs)、虾盘云自动开户 (bootstrap-xiapan.mjs / xiapan-client.mjs)、自动崩溃上报 (report-bug.mjs),portable 和 Electron 两份都删 - 启动脚本去掉绑定指纹调用 + 全部 --auto 自动上报;保留 bonjour 禁用与括号转义 - config-server 删掉 /api/xiapan/* 和 /api/report-bug 端点 - Config.html:虾盘云改为普通「首选」卡片,强调中转站 / 国内外全部大模型, 和其它 provider 一样需用户自填 Key(去 u-claw.org/cloud.html 注册),不再自动开户 - 报 Bug 表单改为指向 GitHub Issue,不再上传日志 - README / release notes / CLAUDE.md 文案改为「选模型填 Key,不绑定设备、不打指纹、不上传数据」 - OPENCLAW_VERSION 跟进最新龙虾版本 2026.6.6 → 2026.6.8 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -86,12 +86,6 @@ if not exist "%CORE_DIR%\node_modules" (
|
||||
echo.
|
||||
)
|
||||
|
||||
REM Bind device fingerprint and inject Xiapan Cloud apiKey into openclaw.json
|
||||
echo Binding device fingerprint to Xiapan Cloud...
|
||||
set "UCLAW_APP_ROOT=%UCLAW_DIR%"
|
||||
"%NODE_BIN%" "%UCLAW_DIR%lib\bootstrap-xiapan.mjs" "%STATE_DIR%\openclaw.json"
|
||||
echo.
|
||||
|
||||
REM Async update check (non-blocking, 5s timeout, silent failure)
|
||||
REM Writes data\.openclaw\update-available.json if a newer version is on OSS.
|
||||
REM Welcome.html / Config.html read this file and show a banner.
|
||||
@@ -125,8 +119,6 @@ if %errorlevel%==0 (
|
||||
set /a PORT+=1
|
||||
if %PORT% gtr 18799 (
|
||||
echo No available port 18789-18799
|
||||
REM 自动上报:端口全被占,gateway 无法启动(detach、静默、失败不影响)
|
||||
start /B "" "%NODE_BIN%" "%UCLAW_DIR%lib\report-bug.mjs" --auto --title "gateway-no-free-port" --desc "Ports 18789-18799 all in use" --root "%UCLAW_DIR%." >nul 2>&1
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
@@ -170,11 +162,8 @@ set "OPENCLAW_MJS=%CORE_DIR%\node_modules\openclaw\openclaw.mjs"
|
||||
set "GW_EXIT=%errorlevel%"
|
||||
|
||||
echo.
|
||||
REM 自动上报:gateway 异常退出(退出码非 0 且非 Ctrl+C/0xC000013A=-1073741510)
|
||||
REM 用户正常 Ctrl+C 停止不上报,避免噪音。detach、静默、失败不影响。
|
||||
if not "%GW_EXIT%"=="0" if not "%GW_EXIT%"=="-1073741510" (
|
||||
echo OpenClaw exited unexpectedly (code %GW_EXIT%), reporting...
|
||||
start /B "" "%NODE_BIN%" "%UCLAW_DIR%lib\report-bug.mjs" --auto --title "gateway-exited-code-%GW_EXIT%" --desc "Gateway exited with code %GW_EXIT% on port %PORT%" --root "%UCLAW_DIR%." >nul 2>&1
|
||||
echo OpenClaw exited unexpectedly ^(code %GW_EXIT%^)
|
||||
)
|
||||
echo OpenClaw stopped.
|
||||
pause
|
||||
|
||||
Reference in New Issue
Block a user