mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
优化rkey获取
This commit is contained in:
@@ -3,8 +3,8 @@ import path from 'node:path';
|
|||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
|
|
||||||
export function getModuleWithArchName(moduleName: string) {
|
export function getModuleWithArchName(moduleName: string) {
|
||||||
const systemPlatform = os.platform;
|
const systemPlatform = os.platform();
|
||||||
const cpuArch = os.arch;
|
const cpuArch = os.arch();
|
||||||
return `${moduleName}-${systemPlatform}-${cpuArch}.node`;
|
return `${moduleName}-${systemPlatform}-${cpuArch}.node`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user