Merge branch 'main' of https://github.com/dongsheng123132/u-claw
This commit is contained in:
@@ -49,6 +49,11 @@ else
|
|||||||
echo -e " ${RED}✗${NC} Node.js: NOT FOUND"
|
echo -e " ${RED}✗${NC} Node.js: NOT FOUND"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Migration shim: rename old core-mac to core for existing USB users
|
||||||
|
if [ -d "$UCLAW_DIR/app/core-mac" ] && [ ! -d "$UCLAW_DIR/app/core" ]; then
|
||||||
|
mv "$UCLAW_DIR/app/core-mac" "$UCLAW_DIR/app/core"
|
||||||
|
fi
|
||||||
|
|
||||||
# 2. Check core directory
|
# 2. Check core directory
|
||||||
echo "[2/6] Checking core directory..."
|
echo "[2/6] Checking core directory..."
|
||||||
CORE_DIR="$UCLAW_DIR/app/core"
|
CORE_DIR="$UCLAW_DIR/app/core"
|
||||||
|
|||||||
@@ -4,6 +4,12 @@
|
|||||||
|
|
||||||
UCLAW_DIR="$(cd "$(dirname "$0")" && pwd)"
|
UCLAW_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||||
APP_DIR="$UCLAW_DIR/app"
|
APP_DIR="$UCLAW_DIR/app"
|
||||||
|
|
||||||
|
# Migration shim: rename old core-mac to core for existing USB users
|
||||||
|
if [ -d "$APP_DIR/core-mac" ] && [ ! -d "$APP_DIR/core" ]; then
|
||||||
|
mv "$APP_DIR/core-mac" "$APP_DIR/core"
|
||||||
|
fi
|
||||||
|
|
||||||
CORE_DIR="$APP_DIR/core"
|
CORE_DIR="$APP_DIR/core"
|
||||||
DATA_DIR="$UCLAW_DIR/data"
|
DATA_DIR="$UCLAW_DIR/data"
|
||||||
STATE_DIR="$DATA_DIR/.openclaw"
|
STATE_DIR="$DATA_DIR/.openclaw"
|
||||||
|
|||||||
@@ -35,6 +35,9 @@ if exist "%NODE_BIN%" (
|
|||||||
set /a ERROR_COUNT+=1
|
set /a ERROR_COUNT+=1
|
||||||
)
|
)
|
||||||
|
|
||||||
|
REM Migration shim: rename old core-win to core for existing USB users
|
||||||
|
if exist "%UCLAW_DIR%app\core-win" if not exist "%UCLAW_DIR%app\core" ren "%UCLAW_DIR%app\core-win" core
|
||||||
|
|
||||||
REM 2. Check core directory
|
REM 2. Check core directory
|
||||||
echo [2/6] 检查 Windows 依赖目录...
|
echo [2/6] 检查 Windows 依赖目录...
|
||||||
set "CORE_DIR=%UCLAW_DIR%app\core"
|
set "CORE_DIR=%UCLAW_DIR%app\core"
|
||||||
|
|||||||
Reference in New Issue
Block a user