Update prepackage.js

This commit is contained in:
Patrick Erichsen 2025-02-08 19:27:59 -08:00
parent 88729ee44f
commit f3161c1cb8

View file

@ -371,18 +371,7 @@ const isMacTarget = target?.startsWith("darwin");
execCmdSync(
`curl -L -o ../../core/node_modules/sqlite3/build.tar.gz ${downloadUrl}`,
);
// TODO: Remove the if/else once we upload the new binary
if (isWinTarget) {
execCmdSync(
"cd ../../core/node_modules/sqlite3 && mkdir -p build/Release && tar -xvzf build.tar.gz -C build/Release",
);
} else {
execCmdSync(
"cd ../../core/node_modules/sqlite3 && tar -xvzf build.tar.gz",
);
}
execCmdSync("cd ../../core/node_modules/sqlite3 && tar -xvzf build.tar.gz");
fs.unlinkSync("../../core/node_modules/sqlite3/build.tar.gz");
// Download and unzip esbuild