Commit 08045de
committed
refactor: improve postinstall platform detection
Detect bundled prebuilds to avoid unnecessary downloads on Linux:
- Linux: Prebuilds are bundled in npm package (prebuilds/linux-*)
Script detects these and skips download entirely
- macOS/Windows: No bundled prebuilds, downloads to build/Release/
Script downloads from GitHub releases as before
Benefits:
- Zero network calls on Linux VMs (instant postinstall)
- Covers 15+ Node.js ABI versions for Linux out of box
- Platform/arch detection matches node conventions (x86_64->x64, etc)
- Clear messaging shows which path was taken
This ensures remote Linux VMs running server mode aren't blocked
by unnecessary downloads or network issues.1 parent 3c69a54 commit 08045de
1 file changed
+24
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
38 | 56 | | |
39 | | - | |
| 57 | + | |
| 58 | + | |
40 | 59 | | |
41 | 60 | | |
42 | 61 | | |
| |||
0 commit comments