mirror of
https://github.com/hicccc77/WeFlow.git
synced 2026-03-25 07:16:51 +00:00
feat: cloudControlService 支持 macOS 平台版本识别
This commit is contained in:
@@ -66,6 +66,10 @@ class CloudControlService {
|
|||||||
return `Windows ${release}`
|
return `Windows ${release}`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (platform === 'darwin') {
|
||||||
|
return `macOS ${os.release()}`
|
||||||
|
}
|
||||||
|
|
||||||
return platform
|
return platform
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ type DbKeyResult = { success: boolean; key?: string; error?: string; logs?: stri
|
|||||||
type ImageKeyResult = { success: boolean; xorKey?: number; aesKey?: string; error?: string }
|
type ImageKeyResult = { success: boolean; xorKey?: number; aesKey?: string; error?: string }
|
||||||
|
|
||||||
export class KeyService {
|
export class KeyService {
|
||||||
|
private readonly isMac = process.platform === 'darwin'
|
||||||
private koffi: any = null
|
private koffi: any = null
|
||||||
private lib: any = null
|
private lib: any = null
|
||||||
private initialized = false
|
private initialized = false
|
||||||
|
|||||||
Reference in New Issue
Block a user