@aiyiran/myclaw 1.0.168 → 1.0.170
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/package.json +1 -1
- package/restrict.js +2 -1
package/package.json
CHANGED
package/restrict.js
CHANGED
|
@@ -49,7 +49,7 @@ function printError(msg) { console.error(C.r + '[错误]' + C.nc + ' ' + msg); }
|
|
|
49
49
|
// 在 WSL 中执行命令,返回 stdout
|
|
50
50
|
function wslExec(cmd) {
|
|
51
51
|
try {
|
|
52
|
-
return execSync('wsl -d ' + DISTRO_NAME + ' -- ' + cmd, {
|
|
52
|
+
return execSync('wsl -d ' + DISTRO_NAME + ' -- bash -c "' + cmd + '"', {
|
|
53
53
|
encoding: 'utf8',
|
|
54
54
|
stdio: ['pipe', 'pipe', 'pipe'],
|
|
55
55
|
}).trim();
|
|
@@ -214,6 +214,7 @@ function step3_createShortcut() {
|
|
|
214
214
|
'$sc.TargetPath = "' + wslPath + '"',
|
|
215
215
|
'$sc.WorkingDirectory = "' + wslPath + '"',
|
|
216
216
|
'$sc.Description = "OpenClaw Workspace"',
|
|
217
|
+
'$sc.IconLocation = "C:\\Windows\\System32\\SHELL32.dll,4"',
|
|
217
218
|
'$sc.Save()',
|
|
218
219
|
'',
|
|
219
220
|
'Write-Host "OK"',
|