mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
fix: copy .node
This commit is contained in:
4
src/ntqqapi/external/cpmodule.ts
vendored
4
src/ntqqapi/external/cpmodule.ts
vendored
@@ -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`
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user