myagent-ai 1.15.86 → 1.15.87
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/start.js +4 -3
package/package.json
CHANGED
package/start.js
CHANGED
|
@@ -420,10 +420,11 @@ function cmdUpdate(pkgDir) {
|
|
|
420
420
|
if (fs.existsSync(newStartJs)) {
|
|
421
421
|
console.log(` [33m已下载 v${newVer},正在切换到新版本...[0m`);
|
|
422
422
|
console.log("");
|
|
423
|
-
const {
|
|
424
|
-
|
|
425
|
-
stdio: "inherit", windowsHide: true,
|
|
423
|
+
const { spawn } = require("child_process");
|
|
424
|
+
const webChild = spawn(process.execPath, [newStartJs, "web"], {
|
|
425
|
+
stdio: "inherit", windowsHide: true, detached: !IS_WIN,
|
|
426
426
|
});
|
|
427
|
+
webChild.unref();
|
|
427
428
|
return;
|
|
428
429
|
}
|
|
429
430
|
}
|