Commit Graph

67 Commits

Author SHA1 Message Date
hfshfg
874e2445f8 Improve Windows startup and diagnostics
- Windows-Start.bat: Always open dashboard instead of Config.html
  The dashboard can guide first-time setup, avoiding file:// protocol issues
- Windows-Diagnose.bat: Add Chinese output for better user experience
  Error counting and friendly suggestions included

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-12 19:29:27 +08:00
hfshfg
25bc0076b0 fix: Windows support & cross-platform architecture
Major fixes for Windows portable version:

1. **Fixed critical bugs:**
   - Replace Unix /dev/null with Windows nul in all .bat files
   - Unified config path to data/.openclaw/openclaw.json
   - Fixed cross-platform node_modules compatibility issue

2. **Implemented separated core directories:**
   - app/core-mac/ for Mac dependencies
   - app/core-win/ for Windows dependencies
   - Prevents cross-platform file system conflicts
   - Shared data/ directory for configs and memory

3. **Enhanced setup.sh:**
   - Now downloads both Mac and Windows Node.js runtimes
   - Ensures U-Claw works on both platforms after setup

4. **Added diagnostic tools:**
   - Windows-Diagnose.bat for troubleshooting
   - Mac-Diagnose.command for troubleshooting
   - Auto-generates diagnostic-log.txt

5. **Improved user experience:**
   - Added Welcome.html - Simple 3-step guide in Chinese
   - All scripts updated to use platform-specific core directories
   - Better error messages and user guidance

Files modified:
- portable/Windows-Start.bat: Use core-win, fix syntax
- portable/Windows-Menu.bat: Use core-win, fix syntax
- portable/Mac-Start.command: Use core-mac
- portable/Mac-Menu.command: Use core-mac
- portable/setup.sh: Download both platforms, use core-mac

Files added:
- portable/Windows-Diagnose.bat: Diagnostic tool
- portable/Mac-Diagnose.command: Diagnostic tool
- portable/Welcome.html: User-friendly welcome page

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-12 18:50:55 +08:00
hfshfg
11220537a0 fix: correct Windows batch file syntax and config path consistency
Fixed critical Windows-specific bugs in portable USB scripts:
- Replaced Unix /dev/null with Windows nul in all batch files
- Unified config file path to use .openclaw/openclaw.json consistently
- Windows-Start.bat now uses same config structure as Windows-Menu.bat

Files modified:
- portable/Windows-Start.bat: Fix /dev/null syntax, unify config path
- portable/Windows-Menu.bat: Fix multiple /dev/null occurrences
- usb-scripts/Windows-Install.bat: Fix /dev/null syntax

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-12 17:50:20 +08:00
dongsheng123132
920fc06679 feat: add 10 China-optimized skills, auto-install via setup.sh
Skills (40KB total, in portable/skills-cn/):
- deepseek-helper: DeepSeek API usage and model selection
- china-weather: Chinese city weather via wttr.in
- xiaohongshu-writer: 小红书爆款笔记写作
- wechat-article: 微信公众号文章写作
- douyin-script: 抖音/快手短视频脚本
- bilibili-helper: B站内容优化
- china-search: 百度/搜狗/Bing国内搜索
- zhihu-writer: 知乎回答写作
- weibo-poster: 微博内容创作
- china-translate: 中英互译+本地化

setup.sh auto-copies skills-cn/ into OpenClaw skills directory.
No external dependency on ClawHub for these skills.
2026-03-12 15:48:17 +08:00
dongsheng123132
b9037ebfa1 fix: remove build-usb.sh, correct README positioning
The repo IS the USB content (minus large deps), not a builder tool.
setup.sh fills in missing deps → folder is ready to copy to USB.
2026-03-12 15:24:55 +08:00
dongsheng123132
9136b5ae69 feat: add USB builder tool and install-to-computer scripts
- build-usb.sh: one-click USB drive builder (downloads Node.js + OpenClaw
  from China mirrors, packages into USB-ready directory)
- Mac-Install.command: install from USB to Mac (~/.uclaw/), offline-first
  with China mirror fallback
- Windows-Install.bat: same for Windows
- README.md rewritten to position project as "USB drive builder toolkit"
2026-03-12 14:02:53 +08:00
dongsheng123132
ed454f78ac fix: correct openclaw.mjs path in Windows scripts, remove broken build step
Same fixes as Mac scripts: use full node_modules path for openclaw.mjs
and remove non-existent npm run build step.
2026-03-12 12:03:17 +08:00
dongsheng123132
5b9673c947 fix: correct openclaw.mjs path and remove broken build step
- openclaw.mjs is at node_modules/openclaw/openclaw.mjs, not core root
- Remove npm run build (openclaw doesn't need a build step via npm)
- Fix both Mac-Start.command and Mac-Menu.command
2026-03-12 12:00:09 +08:00
dongsheng123132
d7bd77d59a fix: remove all external community references, use U-Claw branding
- Replace all openclaw-cn commands with openclaw (official)
- Remove OpenClaw-CN community fork links (jiulingyun)
- Remove clawd.org.cn, skillhub.tencent.com references
- Remove clawdbot-ai/awesome-openclaw-skills-zh links
- Update guide.html, llms.txt, skills.html, SkillHub.html, tutorial
- All links now point to U-Claw (u-claw.org) or OpenClaw official
2026-03-12 11:18:43 +08:00
dongsheng123132
be734cb111 feat: restructure repo for collaboration + add desktop app source
- Reorganize project: clean structure (portable/ u-claw-app/ usb-scripts/ website/)
- Move docs into website/, rename uclaw-scripts to usb-scripts
- Add u-claw-app/ Electron desktop source code
- Add portable/setup.sh: one-command dev environment setup
- Add portable/SkillHub.html: skill marketplace page
- Update README: dev guide, contribution workflow, project structure
- Update .gitignore: exclude runtime binaries and build artifacts
- Expand China install guide: npm mirrors, detailed onboard wizard
2026-03-12 10:59:26 +08:00
dongsheng123132
75b5daab57 fix: Windows first-run opens Config.html instead of onboard
- Windows-Start.bat now detects first run and opens Config.html
- Added custom/relay model option for API proxy platforms
2026-03-11 00:58:55 +08:00
dongsheng123132
a939ba1f9b feat: add custom/relay model option for API proxy platforms
Supports OpenRouter, API2D, New API, One API and other relay services
2026-03-11 00:48:21 +08:00
dongsheng123132
e04c205399 feat: add Chinese config page (Config.html) to replace onboard wizard
- Comprehensive Config.html with 10 model providers, 6 chat platforms
- Auto-detect gateway port, pre-fill existing config, import/export
- Mac-Start.command opens Config.html on first run, dashboard on subsequent runs
- U-Claw.html updated to reference Config.html
2026-03-11 00:35:29 +08:00
dongsheng123132
022f4f1f9a feat: v1.1 - simplified menus, pre-installed QQ plugin, updated README
- Simplify menus from 17 to 8 options (config, dashboard, QQ, platforms, diagnostics, backup, restore, sysinfo)
- Pre-install QQ bot plugin (@sliverp/qqbot) - users only need AppID + Secret
- Install scripts now extract next to themselves (works on USB or computer)
- Rename all scripts to English (Mac-Install, Windows-Install, Mac-Start, etc.)
- Add README.txt for USB drive with bilingual instructions
- Rewrite README.md to match current v1.1 structure
- Remove old Chinese-named scripts, build script, test files, QR images
- Add Toolkit/ and U-Claw-CN/ to .gitignore
2026-03-11 00:09:10 +08:00
dongsheng123132
c1e94d4dd9 feat: add navigation page and rename scripts to English prefixes
- Add U-Claw.html navigation page with OS auto-detection and live status
- Rename scripts: start → Mac-Start/Windows-Start, menu → Mac-Menu/Windows-Menu
- Update installer scripts to reference new v2 directory structure (app/core)
- Update .gitignore to exclude build artifacts and marketing assets
2026-03-10 22:55:20 +08:00
dongsheng123132
797593c398 feat: unified portable package with full menu
- Single package for Mac ARM64 + Windows x64
- start.command/bat = quick launch (gateway + browser)
- menu.command/bat = full 13-option menu:
  config wizard, QQ Bot, Feishu, skills, diagnostics,
  backup/restore, reset, China mirror, system info
- app/data/system separation for safe upgrades
2026-03-10 22:44:56 +08:00
dongsheng123132
6c1bff5572 feat: v1.1 portable architecture (app/data separation)
New directory structure:
- app/core/ = OpenClaw program
- app/runtime/ = Node.js
- data/ = user config, memory, backups (never overwritten on upgrade)
- system/ = migration scripts

Features:
- Auto port detection (18789-18799)
- macOS Gatekeeper auto-fix (xattr quarantine removal)
- Windows UTF-8 BOM + CRLF encoding
- Config auto-migration on startup
- Platform-specific packages (Mac ARM64 + Windows x64)
2026-03-10 22:10:28 +08:00