@simonyea/holysheep-cli 1.3.2 → 1.3.3
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 +6 -5
package/package.json
CHANGED
package/src/tools/openclaw.js
CHANGED
|
@@ -136,11 +136,12 @@ module.exports = {
|
|
|
136
136
|
*/
|
|
137
137
|
function _startGateway() {
|
|
138
138
|
if (isWin) {
|
|
139
|
-
//
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
139
|
+
// Windows: 开一个新的最小化 cmd 窗口运行 gateway(不隐藏,否则用户看不到)
|
|
140
|
+
// 用 start 命令开新窗口,这样主进程可以继续
|
|
141
|
+
spawnSync('cmd', [
|
|
142
|
+
'/c', 'start', '"OpenClaw Gateway"', '/min',
|
|
143
|
+
'cmd', '/k', 'npx openclaw gateway --port 18789'
|
|
144
|
+
], { shell: false, timeout: 5000, stdio: 'ignore' })
|
|
144
145
|
} else {
|
|
145
146
|
const child = spawn('openclaw', ['gateway', '--port', '18789'], {
|
|
146
147
|
detached: true,
|