fix(desktop): drop --ignore-scripts so lbugjs.node install hook runs

Using --ignore-scripts with npm ci skips per-package install hooks,
including @ladybugdb/core's install.js that copies lbugjs.node into
the correct path. Without it, process.dlopen fails with ERR_DLOPEN_FAILED.
This commit is contained in:
Sparsh 2026-05-19 12:12:43 +05:30
parent 6435cad7fd
commit f08f65c6ad

View file

@ -263,11 +263,7 @@ const runNpm = (args, cwd) => {
const repairGitNexusPackages = (_dependencyMap, label) => {
console.info(`[gitnexus-desktop] ${label}.`);
// Skip lifecycle scripts (postinstall/prepare) — the prepare script triggers
// a full gitnexus + web build which can exceed its 120 s execSync timeout on
// a cold machine. The runtime artifacts are rebuilt separately via
// runNpm(['run', 'build'], gitnexusRoot) below when isGitNexusBuildStale().
runNpm(['ci', '--ignore-scripts'], gitnexusRoot);
runNpm(['ci'], gitnexusRoot);
};
const runCommand = (command, args) => {