From f5e29bfb1abe6d8060b9994cba5c8d5ba9392158 Mon Sep 17 00:00:00 2001 From: wiiiii123 Date: Fri, 10 Jul 2026 05:12:39 +0700 Subject: [PATCH] fix: resolve Windows helper paths consistently --- electron/ipc/paths/binaries.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/electron/ipc/paths/binaries.ts b/electron/ipc/paths/binaries.ts index 739f7df8..a95a79cf 100644 --- a/electron/ipc/paths/binaries.ts +++ b/electron/ipc/paths/binaries.ts @@ -53,6 +53,7 @@ export function resolvePreferredWindowsNativeHelperPath( helperDirectory: string, binaryName: string, ): string { + const windowsArchTag = process.arch === "arm64" ? "win32-arm64" : "win32-x64"; const buildOutputPath = resolveUnpackedAppPath( "electron", "native", @@ -61,7 +62,13 @@ export function resolvePreferredWindowsNativeHelperPath( "Release", binaryName, ); - const prebundledPath = getPrebundledNativeHelperPath(binaryName); + const prebundledPath = resolveUnpackedAppPath( + "electron", + "native", + "bin", + windowsArchTag, + binaryName, + ); if (app.isPackaged && existsSync(prebundledPath)) { return prebundledPath;