@aiyiran/myclaw 1.0.40 → 1.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config.js +3 -0
- package/index.js +2 -2
- package/package.json +1 -1
- package/prepare.js +6 -1
package/config.js
CHANGED
package/index.js
CHANGED
|
@@ -334,7 +334,7 @@ echo [OK]
|
|
|
334
334
|
|
|
335
335
|
REM ---- Step 3: Gateway ----
|
|
336
336
|
echo [3/4] Gateway...
|
|
337
|
-
|
|
337
|
+
wsl -d OpenClaw -- pgrep -f "openclaw" >nul 2>&1
|
|
338
338
|
if not errorlevel 1 goto :gateway_running
|
|
339
339
|
|
|
340
340
|
REM Gateway not running -> update myclaw first, then start
|
|
@@ -374,7 +374,7 @@ echo OpenClaw is running. Browser opened.
|
|
|
374
374
|
echo Type exit to close this window.
|
|
375
375
|
echo ============================================
|
|
376
376
|
echo.
|
|
377
|
-
wsl -d OpenClaw
|
|
377
|
+
wsl -d OpenClaw --cd /root/.openclaw
|
|
378
378
|
pause
|
|
379
379
|
`;
|
|
380
380
|
|
package/package.json
CHANGED
package/prepare.js
CHANGED
|
@@ -361,10 +361,15 @@ async function run() {
|
|
|
361
361
|
}
|
|
362
362
|
|
|
363
363
|
// === Step 4: Patch ===
|
|
364
|
-
|
|
364
|
+
const { AUTO_PATCH } = require('./config');
|
|
365
|
+
if (AUTO_PATCH && env !== 'windows') {
|
|
365
366
|
// Mac/Linux 直接 patch
|
|
366
367
|
runPatchStep(env);
|
|
367
368
|
console.log('');
|
|
369
|
+
} else if (!AUTO_PATCH) {
|
|
370
|
+
log('Step 4', 'Patch 已跳过 (AUTO_PATCH=false)');
|
|
371
|
+
console.log(' 手动执行: ' + C.y + 'myclaw patch' + C.nc);
|
|
372
|
+
console.log('');
|
|
368
373
|
}
|
|
369
374
|
|
|
370
375
|
// === Step 5: Windows 桌面启动器 ===
|