fix: copy .node

This commit is contained in:
linyuchen
2024-04-30 23:12:36 +08:00
parent 59cd28a2fd
commit ec27d73605

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