Do a normal build if downloading the precompiled binary fails
issue #904
This commit is contained in:
parent
1e403add6d
commit
f5665b6a00
@ -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",
|
||||
|
||||
@ -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);
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user