feat: cloudControlService 支持 macOS 平台版本识别

This commit is contained in:
hicccc77 committed 2026-03-08 12:25:06 +08:00
1 parent e1a23ac606
commit 10ce7d772c
2 files changed
+5

No files matched your search

+4
View File
@@ -66,6 +66,10 @@ class CloudControlService {
return `Windows ${release}`
}
if (platform === 'darwin') {
return `macOS ${os.release()}`
}
return platform
}
+1
View File
@@ -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