去掉不适合开源的商业逻辑,保持一个纯粹的开源 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>
25 lines
878 B
JavaScript
25 lines
878 B
JavaScript
// Sync portable/ -> u-claw-app/ before dev/build.
|
|
// Single source of truth lives under portable/ (used by Windows-Start.bat,
|
|
// Mac-Start.command, and config-server). The Electron desktop app embeds a
|
|
// runtime copy because asar packaging cannot reach across siblings.
|
|
|
|
const fs = require('node:fs');
|
|
const path = require('node:path');
|
|
|
|
const APP_DIR = path.resolve(__dirname, '..');
|
|
const PORTABLE_DIR = path.resolve(APP_DIR, '..', 'portable');
|
|
|
|
const COPIES = [
|
|
{ from: path.join(PORTABLE_DIR, 'Config.html'), to: path.join(APP_DIR, 'resources', 'Config.html') },
|
|
];
|
|
|
|
for (const { from, to } of COPIES) {
|
|
if (!fs.existsSync(from)) {
|
|
console.error(`[sync-lib] Missing ${from}`);
|
|
process.exit(1);
|
|
}
|
|
fs.mkdirSync(path.dirname(to), { recursive: true });
|
|
fs.copyFileSync(from, to);
|
|
console.log(`[sync-lib] ${path.relative(APP_DIR, to)}`);
|
|
}
|