Image Pipeline Playground
chore: use npm ci for desktop builds when CI is set
Mohammad Rajaeiaa05e0bf4f59
diff --git a/scripts/build-desktop.mjs b/scripts/build-desktop.mjsindex 6263373..6947a69 100644--- a/scripts/build-desktop.mjs+++ b/scripts/build-desktop.mjs@@ -48,6 +48,10 @@ async function main() {const resourcesServer = path.join(desktopDir, 'resources', 'server')const pyDist = path.join(backendDir, 'dist', 'image-pipes-server')+ console.log('==> Installing frontend dependencies')+ const npmInstall = process.env.CI === 'true' ? ['ci'] : ['install']+ await run('npm', npmInstall, frontendDir)+console.log('==> Building frontend')await run('npm', ['run', 'build'], frontendDir)@@ -90,7 +94,7 @@ async function main() {}console.log('==> Installing desktop dependencies')- await run('npm', ['install'], desktopDir)+ await run('npm', npmInstall, desktopDir)console.log('==> Building Electron installer')await run('npm', ['run', 'dist'], desktopDir)