@zi.yi/openclaw-easy 1.0.4 → 1.0.6
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/bin/openclaw-easy.mjs +14 -8
- package/package.json +1 -1
package/bin/openclaw-easy.mjs
CHANGED
|
@@ -249,22 +249,28 @@ async function main() {
|
|
|
249
249
|
updateOpenClawConfig(finalModel);
|
|
250
250
|
|
|
251
251
|
if (isWindows) {
|
|
252
|
-
// Windows
|
|
252
|
+
// Windows:自动启动 Gateway(前台运行)
|
|
253
253
|
console.log("\n" + "=".repeat(50));
|
|
254
|
-
console.log("
|
|
254
|
+
console.log(" ✅ 配置完成!");
|
|
255
255
|
console.log("=".repeat(50));
|
|
256
|
-
console.log("\n
|
|
257
|
-
console.log("
|
|
258
|
-
console.log("
|
|
259
|
-
console.log("
|
|
260
|
-
console.log(" npx openclaw dashboard");
|
|
256
|
+
console.log("\n正在启动 OpenClaw Gateway...");
|
|
257
|
+
console.log("⚠️ 请保持此窗口开启,关闭会停止服务\n");
|
|
258
|
+
console.log("打开新终端,运行以下命令打开控制面板:");
|
|
259
|
+
console.log(" npx openclaw dashboard");
|
|
261
260
|
console.log("\n" + "=".repeat(50) + "\n");
|
|
261
|
+
|
|
262
|
+
// 直接启动 Gateway(阻塞式)
|
|
263
|
+
spawnSync(
|
|
264
|
+
process.execPath,
|
|
265
|
+
[openclawCli, "gateway"],
|
|
266
|
+
{ stdio: "inherit" }
|
|
267
|
+
);
|
|
262
268
|
} else {
|
|
263
269
|
// macOS/Linux:自动重启
|
|
264
270
|
console.log("\n正在重启 OpenClaw Gateway...");
|
|
265
271
|
spawnSync(
|
|
266
272
|
process.execPath,
|
|
267
|
-
[openclawCli, "gateway", "
|
|
273
|
+
[openclawCli, "gateway", "stop"],
|
|
268
274
|
{ stdio: "inherit" }
|
|
269
275
|
);
|
|
270
276
|
console.log("\n✓ 配置完成!Gateway 正在自动启动...");
|