@simonyea/holysheep-cli 1.3.4 → 1.3.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/package.json +1 -1
- package/src/tools/openclaw.js +8 -11
package/package.json
CHANGED
package/src/tools/openclaw.js
CHANGED
|
@@ -136,17 +136,14 @@ module.exports = {
|
|
|
136
136
|
*/
|
|
137
137
|
function _startGateway() {
|
|
138
138
|
if (isWin) {
|
|
139
|
-
// Windows:
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
spawnSync('wscript', [vbsPath], { shell: false, timeout: 5000, stdio: 'ignore' })
|
|
148
|
-
} catch {}
|
|
149
|
-
}
|
|
139
|
+
// Windows: 弹出新 cmd 窗口运行 gateway(最可靠,进程真实存在)
|
|
140
|
+
// 窗口标题设为 "OpenClaw Gateway" 方便用户识别
|
|
141
|
+
spawnSync('cmd', ['/c', 'start', '"OpenClaw Gateway"', 'cmd', '/k', 'npx openclaw gateway --port 18789'], {
|
|
142
|
+
shell: false,
|
|
143
|
+
timeout: 5000,
|
|
144
|
+
stdio: 'ignore',
|
|
145
|
+
detached: true,
|
|
146
|
+
})
|
|
150
147
|
} else {
|
|
151
148
|
const child = spawn('openclaw', ['gateway', '--port', '18789'], {
|
|
152
149
|
detached: true,
|