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:
@@ -110,12 +110,7 @@ if [ ! -d "$CORE_DIR/node_modules" ]; then
|
||||
echo ""
|
||||
fi
|
||||
|
||||
# ---- 7b. Bind device fingerprint and inject Xiapan Cloud apiKey ----
|
||||
echo -e " ${CYAN}Binding device fingerprint to Xiapan Cloud...${NC}"
|
||||
UCLAW_APP_ROOT="$UCLAW_DIR" "$NODE_BIN" "$UCLAW_DIR/lib/bootstrap-xiapan.mjs" "$CONFIG_FILE" || true
|
||||
echo ""
|
||||
|
||||
# ---- 7c. Async update check (non-blocking, 5s timeout, silent failure) ----
|
||||
# ---- 7b. Async update check (non-blocking, 5s timeout, silent failure) ----
|
||||
# Writes data/.openclaw/update-available.json if a newer version is on OSS.
|
||||
# Welcome.html / Config.html read this file and show a banner.
|
||||
# Version file lookup: portable/OPENCLAW_VERSION (USB) → ../OPENCLAW_VERSION (dev)
|
||||
@@ -132,9 +127,6 @@ while lsof -i :$PORT >/dev/null 2>&1; do
|
||||
PORT=$((PORT + 1))
|
||||
if [ $PORT -gt 18799 ]; then
|
||||
echo -e " ${RED}No available port (18789-18799)${NC}"
|
||||
# 自动上报:端口全占,gateway 无法启动(后台、静默、失败不影响)
|
||||
UCLAW_APP_ROOT="$UCLAW_DIR" "$NODE_BIN" "$UCLAW_DIR/lib/report-bug.mjs" \
|
||||
--auto --title "gateway-no-free-port" --desc "Ports 18789-18799 all in use" --root "$UCLAW_DIR" >/dev/null 2>&1 &
|
||||
read -p " Press Enter to exit..."
|
||||
exit 1
|
||||
fi
|
||||
@@ -190,12 +182,9 @@ trap cleanup INT TERM
|
||||
wait $GW_PID
|
||||
GW_EXIT=$?
|
||||
|
||||
# 自动上报:gateway 异常退出。Ctrl+C 走 trap cleanup(exit 0)不会到这;
|
||||
# 走到这里说明 gateway 自己退了。退出码非 0 才上报,避免噪音。后台、静默、失败不影响。
|
||||
# Ctrl+C 走 trap cleanup(exit 0)不会到这;走到这里说明 gateway 自己退了。
|
||||
if [ "$GW_EXIT" -ne 0 ]; then
|
||||
echo -e " ${YELLOW}OpenClaw exited unexpectedly (code $GW_EXIT), reporting...${NC}"
|
||||
UCLAW_APP_ROOT="$UCLAW_DIR" "$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" >/dev/null 2>&1 &
|
||||
echo -e " ${YELLOW}OpenClaw exited unexpectedly (code $GW_EXIT)${NC}"
|
||||
fi
|
||||
kill $CONFIG_PID 2>/dev/null
|
||||
echo ""
|
||||
|
||||
Reference in New Issue
Block a user