fix: copy ripgrep vendor binary to both dist/ and dist-nosplit/
Previously only vendor/audio-capture was copied. Ripgrep was left to a postinstall download script, but no-split builds have no postinstall step. Now both builds get the ripgrep binary directly.
This commit is contained in:
parent
15150dfe0b
commit
5dd3cc30e6
12
build.ts
12
build.ts
|
|
@ -56,10 +56,14 @@ console.log(
|
|||
`Bundled ${result.outputs.length} files to ${outdir}/ (patched ${patched} for Node.js compat)`,
|
||||
)
|
||||
|
||||
// Step 4: Copy native .node addon files (audio-capture)
|
||||
const vendorDir = join(outdir, 'vendor', 'audio-capture')
|
||||
await cp('vendor/audio-capture', vendorDir, { recursive: true })
|
||||
console.log(`Copied vendor/audio-capture/ → ${vendorDir}/`)
|
||||
// Step 4: Copy vendor binaries (audio-capture, ripgrep)
|
||||
const distVendorAudio = join(outdir, 'vendor', 'audio-capture')
|
||||
await cp('vendor/audio-capture', distVendorAudio, { recursive: true })
|
||||
console.log(`Copied vendor/audio-capture/ → ${distVendorAudio}/`)
|
||||
|
||||
const distVendorRg = join(outdir, 'vendor', 'ripgrep')
|
||||
await cp('src/utils/vendor/ripgrep', distVendorRg, { recursive: true })
|
||||
console.log(`Copied src/utils/vendor/ripgrep/ → ${distVendorRg}/`)
|
||||
|
||||
// Step 5: Bundle download-ripgrep script as standalone JS for postinstall
|
||||
const rgScript = await Bun.build({
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user