| 238 | } |
| 239 | |
| 240 | async function copySqliteBinary() { |
| 241 | process.chdir(path.join(continueDir, "extensions", "vscode")); |
| 242 | console.log("[info] Copying sqlite node binding from core"); |
| 243 | await new Promise((resolve, reject) => { |
| 244 | ncp( |
| 245 | path.join(__dirname, "../../../core/node_modules/sqlite3/build"), |
| 246 | path.join(__dirname, "../out/build"), |
| 247 | { dereference: true }, |
| 248 | (error) => { |
| 249 | if (error) { |
| 250 | console.warn("[error] Error copying sqlite3 files", error); |
| 251 | reject(error); |
| 252 | } else { |
| 253 | resolve(); |
| 254 | } |
| 255 | }, |
| 256 | ); |
| 257 | }); |
| 258 | } |
| 259 | |
| 260 | async function downloadRipgrepBinary(target) { |
| 261 | console.log("[info] Downloading pre-built ripgrep binary"); |