fix(v1.2.0): wechatStatus 改走 app-ctl <appType>(之前被 iCloud 回退)

b7fd778 提交时这行被本机 iCloud 回退成 wechat-ctl.sh status,导致非微信实例(Chromium)
状态去查微信二进制 → 永远「尚未安装」,且 Chromium 无安装按钮 → 卡死。改回 app-ctl.sh
<appType> status:Chromium 即报已就绪、可直接进入。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Gloridust
2026-06-14 18:46:42 +08:00
Unverified
parent 1da52bfb96
commit b954f38c15
+1 -1
View File
@@ -435,7 +435,7 @@ const DEFAULT_STATUS: WechatStatus = { phase: 'idle', percent: 0, installed: fal
export async function wechatStatus(inst: Instance): Promise<WechatStatus> {
try {
const raw = await execCapture(inst, ['/woc/wechat-ctl.sh', 'status']);
const raw = await execCapture(inst, ['/woc/app-ctl.sh', instanceAppType(inst), 'status']);
const json = JSON.parse(raw.trim());
return { ...DEFAULT_STATUS, ...json };
} catch {