pinokiod 3.142.0 → 3.144.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kernel/bin/conda.js +2 -0
- package/kernel/util.js +8 -3
- package/package.json +1 -1
package/kernel/bin/conda.js
CHANGED
package/kernel/util.js
CHANGED
|
@@ -36,11 +36,16 @@ const pushListeners = new Set()
|
|
|
36
36
|
let cachedMacNotifierPath
|
|
37
37
|
|
|
38
38
|
function resolveAsarPath(p) {
|
|
39
|
-
if (!p || p.includes('app.asar.unpacked')) {
|
|
39
|
+
if (!p || p.includes('app.asar.unpacked') || !p.includes('app.asar')) {
|
|
40
40
|
return p
|
|
41
41
|
}
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
const candidate = p.replace('app.asar', 'app.asar.unpacked')
|
|
43
|
+
try {
|
|
44
|
+
if (fs.existsSync(candidate)) {
|
|
45
|
+
return candidate
|
|
46
|
+
}
|
|
47
|
+
} catch (_) {
|
|
48
|
+
// ignore fs errors and fall back to the original path
|
|
44
49
|
}
|
|
45
50
|
return p
|
|
46
51
|
}
|