chore: 停发并归档 Electron 桌面版,产品只保留便携 U 盘版

桌面 Electron 版是商业版 ClawX 已做得更好的事的劣化版,且启动坑多
(冷启动建编译缓存 >30s 撞写死的 30s 硬超时,绿色版每次解压 837MB
永远冷启动)。U-Claw 的本质是「插上 U 盘解压即用」,故停发桌面版,
只发便携版。

- release.yml: 删除 desktop-windows / desktop-mac 两个 job;publish
  只依赖 portable-windows-full;发布说明去掉桌面安装版/dmg,只留便携版
- u-claw-app/DEPRECATED.md: 新增归档说明(停发原因、坑、如何捡回)
- u-claw-app/src/main.js: 顺带修 gateway 超时 30s→180s + spawn 加固定
  NODE_COMPILE_CACHE(让归档代码处于可用状态)
- 删除 usb-release/: portable/ 的老前身,2026-04 后无人维护、全仓库零
  引用,是「为什么有两个 U 盘版」的混乱源
- README.md / CLAUDE.md: 分发形态更新为便携版唯一主发

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
hfshfg
2026-06-20 00:15:32 +08:00
parent 2697b893d5
commit 8cd5dbfea4
24 changed files with 70 additions and 3021 deletions

View File

@@ -14,6 +14,8 @@ on:
permissions:
contents: write
# 产品只发「便携 U 盘版」(portable/ — .bat/.command 解压即用)。
# Electron 桌面版 (u-claw-app/) 已于 2026-06-19 停发并归档,详见 u-claw-app/DEPRECATED.md。
jobs:
portable-windows-full:
name: Portable Windows full bundle (Node + OpenClaw pre-installed)
@@ -211,87 +213,9 @@ jobs:
name: portable-windows-full
path: dist/u-claw-portable-windows-*.zip
desktop-windows:
name: Electron Windows installer
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
- name: Install dependencies
shell: cmd
run: |
cd u-claw-app
npm install --registry=https://registry.npmmirror.com
- name: Sync version from tag
shell: bash
run: |
tag_name="${GITHUB_REF_NAME:-${{ github.event.inputs.tag }}}"
ver="${tag_name#v}" # strip leading v -> 2.1.5
cd u-claw-app
npm version "$ver" --no-git-tag-version --allow-same-version
echo "桌面版版本号已同步为 $ver"
- name: Build Windows installer
shell: cmd
run: |
cd u-claw-app
npm run build:win
env:
# Skip code signing — we ship unsigned. README documents the SmartScreen workaround.
CSC_IDENTITY_AUTO_DISCOVERY: 'false'
- uses: actions/upload-artifact@v4
with:
name: desktop-windows
path: |
u-claw-app/release/*.exe
u-claw-app/release/*.exe.blockmap
desktop-mac:
name: Electron macOS DMG
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
- name: Install dependencies
run: |
cd u-claw-app
npm install --registry=https://registry.npmmirror.com
- name: Sync version from tag
run: |
tag_name="${GITHUB_REF_NAME:-${{ github.event.inputs.tag }}}"
ver="${tag_name#v}" # strip leading v -> 2.1.5
cd u-claw-app
npm version "$ver" --no-git-tag-version --allow-same-version
echo "桌面版版本号已同步为 $ver"
- name: Build macOS DMG
run: |
cd u-claw-app
npm run build:mac-arm64
env:
CSC_IDENTITY_AUTO_DISCOVERY: 'false'
- uses: actions/upload-artifact@v4
with:
name: desktop-mac
path: |
u-claw-app/release/*.dmg
u-claw-app/release/*.dmg.blockmap
publish:
name: Publish GitHub Release
needs: [portable-windows-full, desktop-windows, desktop-mac]
needs: [portable-windows-full]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
@@ -331,20 +255,13 @@ jobs:
### 下载
- **Windows 桌面版**`U-Claw.Setup.*.exe`(安装到电脑)或 `U-Claw.*.exe`(免安装绿色版)
- **macOS 桌面版**`U-Claw-*-arm64.dmg`Apple Silicon或 `U-Claw-*.dmg`Intel
- **Windows 便携完整版U 盘版)**`u-claw-portable-windows-*.zip`(约 150-200 MB已预装 Node.js + OpenClaw**解压即用,零网络依赖**
- **macOS 便携骨架(开发者)**:源码在 `portable/` 目录,`bash setup.sh` 自动下载 Node + OpenClaw国内镜像约 1 分钟)
- **Windows 便携完整版U 盘版)**`u-claw-portable-windows-*.zip`(约 150-200 MB已预装 Node.js + OpenClaw**解压即用,零网络依赖**)。解压到 U 盘后双击 `Windows-Start.bat` 启动。
- **macOS 便携版**源码在 `portable/` 目录,`bash setup.sh` 自动下载 Node + OpenClaw国内镜像约 1 分钟),双击 `Mac-Start.command` 启动。
> **U 盘格式建议**:请用 **NTFS** 格式化 U 盘NOT exFAT/FAT32。Node.js 在 exFAT 上 IO 极慢且不支持符号链接,可能导致启动失败。
> Windows 下右键 U 盘 → 格式化 → 文件系统选择 NTFS。
> Windows 安装包未做代码签名,首次运行 SmartScreen 选择「仍要运行」。
> macOS DMG 未做公证,首次启动 `xattr -rd com.apple.quarantine /Applications/U-Claw.app` 或右键打开。
files: |
artifacts/portable-windows-full/*
artifacts/desktop-windows/*
artifacts/desktop-mac/*
fail_on_unmatched_files: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}