fix: copy vendor binaries (ripgrep, audio-capture) to dist-nosplit output
The no-split build omitted vendor/ripgrep/ and vendor/audio-capture/, causing Glob/Grep/Bash tools to fail with ENOENT when CCP runs from dist-nosplit/. The split build (dist/) already did this copy in step 4; now the no-split build (dist-nosplit/) does it too.
This commit is contained in:
parent
9c5df5d1a6
commit
15150dfe0b
13
build.ts
13
build.ts
|
|
@ -94,5 +94,16 @@ if (!noSplitResult.success) {
|
|||
console.error('No-split build failed:')
|
||||
for (const log of noSplitResult.logs) console.error(log)
|
||||
} else {
|
||||
console.log(`No-split bundle: ${noSplitResult.outputs.length} file → ${noSplitDir}/`)
|
||||
console.log(
|
||||
`No-split bundle: ${noSplitResult.outputs.length} file → ${noSplitDir}/`,
|
||||
)
|
||||
|
||||
// Copy vendor binaries to no-split output so ripgrep and audio-capture work
|
||||
const noSplitVendorAudio = join(noSplitDir, 'vendor', 'audio-capture')
|
||||
await cp('vendor/audio-capture', noSplitVendorAudio, { recursive: true })
|
||||
console.log(`Copied vendor/audio-capture/ → ${noSplitVendorAudio}/`)
|
||||
|
||||
const noSplitVendorRg = join(noSplitDir, 'vendor', 'ripgrep')
|
||||
await cp('src/utils/vendor/ripgrep', noSplitVendorRg, { recursive: true })
|
||||
console.log(`Copied src/utils/vendor/ripgrep/ → ${noSplitVendorRg}/`)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user