mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
优化rkey获取
This commit is contained in:
parent
eb93dd5005
commit
e5d62488b7
@ -3,8 +3,8 @@ import path from 'node:path';
|
||||
import fs from 'fs';
|
||||
|
||||
export function getModuleWithArchName(moduleName: string) {
|
||||
const systemPlatform = os.platform;
|
||||
const cpuArch = os.arch;
|
||||
const systemPlatform = os.platform();
|
||||
const cpuArch = os.arch();
|
||||
return `${moduleName}-${systemPlatform}-${cpuArch}.node`;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user