From 4e80f93b30f2656d7161c11a448e1d43825b7d50 Mon Sep 17 00:00:00 2001 From: hicccc77 <98377878+hicccc77@users.noreply.github.com> Date: Thu, 12 Mar 2026 22:48:16 +0800 Subject: [PATCH] fix: enable file monitor for macOS (remove platform restriction) --- electron/services/wcdbCore.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/electron/services/wcdbCore.ts b/electron/services/wcdbCore.ts index ed0862a..d664443 100644 --- a/electron/services/wcdbCore.ts +++ b/electron/services/wcdbCore.ts @@ -148,13 +148,8 @@ export class WcdbCore { } } - // 使用命名管道 IPC (仅 Windows) + // 使用命名管道/socket IPC (Windows: Named Pipe, macOS: Unix Socket) startMonitor(callback: (type: string, json: string) => void): boolean { - if (process.platform !== 'win32') { - console.warn('[wcdbCore] Monitor not supported on macOS') - return false - } - if (!this.wcdbStartMonitorPipe) { return false }