@aiyiran/myclaw 1.0.36 → 1.0.37
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 +1 -1
- package/index.js +2 -2
- package/package.json +1 -1
package/config.js
CHANGED
package/index.js
CHANGED
|
@@ -380,8 +380,8 @@ pause
|
|
|
380
380
|
`;
|
|
381
381
|
|
|
382
382
|
|
|
383
|
-
// 写入 bat
|
|
384
|
-
fs.writeFileSync(batPath, batContent, 'utf8');
|
|
383
|
+
// 写入 bat 文件(Windows CMD 需要 CRLF 换行符)
|
|
384
|
+
fs.writeFileSync(batPath, batContent.replace(/\n/g, '\r\n'), 'utf8');
|
|
385
385
|
|
|
386
386
|
// 用 PowerShell 创建带图标的桌面快捷方式
|
|
387
387
|
const psScript = `
|