From 10ce7d772ce49f1648c5f2b63c5966a263aed386 Mon Sep 17 00:00:00 2001 From: hicccc77 <98377878+hicccc77@users.noreply.github.com> Date: Sun, 8 Mar 2026 12:25:06 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20cloudControlService=20=E6=94=AF?= =?UTF-8?q?=E6=8C=81=20macOS=20=E5=B9=B3=E5=8F=B0=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E8=AF=86=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- electron/services/cloudControlService.ts | 4 ++++ electron/services/keyService.ts | 1 + 2 files changed, 5 insertions(+) diff --git a/electron/services/cloudControlService.ts b/electron/services/cloudControlService.ts index 9b29ab3..89edc29 100644 --- a/electron/services/cloudControlService.ts +++ b/electron/services/cloudControlService.ts @@ -66,6 +66,10 @@ class CloudControlService { return `Windows ${release}` } + if (platform === 'darwin') { + return `macOS ${os.release()}` + } + return platform } diff --git a/electron/services/keyService.ts b/electron/services/keyService.ts index d9d607b..2caa66b 100644 --- a/electron/services/keyService.ts +++ b/electron/services/keyService.ts @@ -12,6 +12,7 @@ type DbKeyResult = { success: boolean; key?: string; error?: string; logs?: stri type ImageKeyResult = { success: boolean; xorKey?: number; aesKey?: string; error?: string } export class KeyService { + private readonly isMac = process.platform === 'darwin' private koffi: any = null private lib: any = null private initialized = false