diff --git a/package.json b/package.json index b620593e7..f139d33c2 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "scripts": { "dev": "cross-env npm run build && node ./scripts/qode.js dist/demo.js", "build": "cross-env tsc && npm run build:addon", - "install": "cross-env npm run setupqt && (node ./scripts/skip.js || npm run setupbinary)", + "install": "cross-env npm run setupqt && (node ./scripts/skip.js || npm run setupbinary || npm run build:addon)", "setupqt": "cross-env node ./scripts/setupMiniQt.js", "setupbinary": "cross-env node ./scripts/setupBinary.js", "build:addon": "cross-env CMAKE_BUILD_PARALLEL_LEVEL=8 cmake-js compile", diff --git a/scripts/setupBinary.js b/scripts/setupBinary.js index 1ea5b1979..c16ef8af2 100644 --- a/scripts/setupBinary.js +++ b/scripts/setupBinary.js @@ -29,7 +29,11 @@ async function setupBinary() { fs.unlinkSync(tarPath); } -setupBinary().catch((err) => { - console.error(err); - process.exit(1); -}); +setupBinary() + .catch((err) => { + console.error(err); + process.exit(1); + }) + .then(() => { + process.exit(0); + });