diff --git a/binding.gyp b/binding.gyp index a991077..388602a 100644 --- a/binding.gyp +++ b/binding.gyp @@ -1,6 +1,6 @@ { "targets": [{ - "target_name": "winVerifyTrust", + "target_name": "winVerifyTrust.napi", "cflags!": [ "-fno-exceptions" ], "cflags_cc!": [ "-fno-exceptions" ], "sources": [ diff --git a/lib/index.js b/lib/index.js index 7f35397..7e8f863 100644 --- a/lib/index.js +++ b/lib/index.js @@ -7,7 +7,7 @@ found in the LICENSE file in the root directory of this source tree. import { join, extname } from "node:path"; import { find, load } from "node-gyp-load"; import { exists } from "@xan105/fs"; -import { dirname, resolve } from "@xan105/fs/path"; +import { resolve } from "@xan105/fs/path"; import { Failure, errorLookup } from "@xan105/error"; import { isString, isStringNotEmpty, isObjLike } from "@xan105/is"; import { shouldStringNotEmpty, shouldObjLike } from "@xan105/is/assert"; @@ -15,7 +15,7 @@ import { shouldStringNotEmpty, shouldObjLike } from "@xan105/is/assert"; //Load bindings const bindings = await find({ name: "winVerifyTrust", - dir: join(dirname(import.meta.url), "../"), + dir: join(import.meta.dirname, "../"), prebuild: true }); diff --git a/package.json b/package.json index 7cc1a9f..aa3fb2d 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "install": "node-gyp-load", "build:x86": "node-gyp rebuild --arch=ia32", "build:x64": "node-gyp rebuild --arch=x64", + "build:arm64": "node-gyp rebuild --arch=arm64", "clean": "node-gyp clean", "lint": "eslint \"./lib/**/*.{js,mjs}\" \"./types/**/*.d.ts\"", "test": "tap \"./test/**/*.js\" --no-coverage --no-coverage-report", diff --git a/prebuilds/win32-arm64/winVerifyTrust.napi.node b/prebuilds/win32-arm64/winVerifyTrust.napi.node new file mode 100644 index 0000000..1aa815a Binary files /dev/null and b/prebuilds/win32-arm64/winVerifyTrust.napi.node differ