优化rkey获取
This commit is contained in:
1 parent
286446c816
commit
02a4faab8a
1 file changed
+2
-2
@@ -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