Open History to see the last commit
1diff --git a/dist/src/binary.js b/dist/src/binary.js
2index ee181aef5007e4bf34a49479c089ca30f73a320b..327e2c55c83cc4c50d396a3109190ef10af75ca7 100644
3--- a/dist/src/binary.js
4+++ b/dist/src/binary.js
5@@ -7,7 +7,7 @@
6 */
7 import { existsSync, readFileSync } from "node:fs";
8 import { createRequire } from "node:module";
9-import { dirname, join } from "node:path";
10+import { dirname, join, sep } from "node:path";
11 import { fileURLToPath } from "node:url";
12 import { getLibFilename, getNpmPackageName } from "./platform.js";
13 /**
14@@ -46,6 +46,14 @@ function getPackageDir() {
15 // Fallback: assume we're one level deep in src/
16 return dirname(currentDir);
17 }
18+function resolveUnpackedAsarPath(binaryPath) {
19+ const asarSegment = `${sep}app.asar${sep}`;
20+ if (!binaryPath.includes(asarSegment)) {
21+ return binaryPath;
22+ }
23+ const unpackedPath = binaryPath.replace(asarSegment, `${sep}app.asar.unpacked${sep}`);
24+ return existsSync(unpackedPath) ? unpackedPath : binaryPath;
25+}
26 /**
27 * Check if the binary exists in any known location
28 */
29@@ -69,7 +77,7 @@ function resolveFromNpmPackage() {
30 const packageDir = dirname(packageJsonPath);
31 const binaryPath = join(packageDir, getLibFilename());
32 if (existsSync(binaryPath)) {
33- return binaryPath;
34+ return resolveUnpackedAsarPath(binaryPath);
35 }
36 }
37 catch {