mirror of
https://github.com/webadderallorg/Recordly.git
synced 2026-09-24 14:55:37 +00:00
fix: resolve Windows helper paths consistently
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user