优化rkey获取

This commit is contained in:
linyuchen 2024-05-01 12:17:25 +08:00
parent eb93dd5005
commit e5d62488b7

View File

@ -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`;
}