Skip to content

Commit 2a5e29a

Browse files
authored
improvement(updates): validate update path and fix native mac help (#6580)
* Desktop update check * Update script
1 parent 7f39678 commit 2a5e29a

12 files changed

Lines changed: 673 additions & 7 deletions

File tree

apps/desktop/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ src/main/ # main process (bundled to dist/main.cjs)
3535
browser-sites/ # imported site directory, safeStorage at rest
3636
browser-import/ # one-shot import of profiles, cookies and passwords
3737
src/preload/ # contextBridge IPC bridge (bundled to dist/preload.cjs)
38+
native/ # Node-API/AppKit bridge for native macOS Help docs search
3839
static/ # bundled local pages (offline.html)
3940
e2e/ # Playwright _electron smoke suite
4041
```

apps/desktop/electron-builder.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ files:
1313

1414
asar: true
1515

16-
# Native modules cannot be dlopen'd from inside an asar.
17-
# `scripts/ensure-pty-prebuilds.ts` guarantees both arch prebuilds are present
18-
# before packaging; see mac.x64ArchFiles for how the universal merge treats them.
16+
# Native modules cannot be dlopen'd from inside an asar. The Help-search addon
17+
# is already universal; `scripts/ensure-pty-prebuilds.ts` guarantees both pty
18+
# prebuilds are present before packaging.
1919
asarUnpack:
2020
- "**/node_modules/@lydell/node-pty-*/prebuilds/**"
21+
- "**/dist/native/*.node"
2122

2223
# Space-free regardless of productName ("Sim Dev" etc.): GitHub rewrites
2324
# asset names containing spaces, which would desync the electron-updater

0 commit comments

Comments
 (0)