diff --git a/lib/util/ffi.js b/lib/util/ffi.js index f3d88a5..efc66b1 100644 --- a/lib/util/ffi.js +++ b/lib/util/ffi.js @@ -5,11 +5,10 @@ found in the LICENSE file in the root directory of this source tree. */ import { arch } from "node:process"; -import { fileURLToPath } from "node:url"; -import { join, dirname } from "node:path"; +import { join } from "node:path"; const filePath = join( - dirname(fileURLToPath(import.meta.url)), + import.meta.dirname, "../../dist/", `regodit.${{ia32: "x86"}[arch] ?? arch}.dll` ).replace("app.asar", "app.asar.unpacked"); //electron asar friendly