pinokiod 3.142.0 → 3.143.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.
Files changed (2) hide show
  1. package/kernel/util.js +8 -3
  2. package/package.json +1 -1
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
- if (p.includes('app.asar')) {
43
- return p.replace('app.asar', 'app.asar.unpacked')
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.142.0",
3
+ "version": "3.143.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {